mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-10 09:56:24 +00:00
fix minor issue
This commit is contained in:
parent
32b0f29b2e
commit
759e3fedf4
3 changed files with 11 additions and 7 deletions
4
.vscode/settings.json
vendored
4
.vscode/settings.json
vendored
|
@ -13,11 +13,11 @@
|
||||||
"typescript.format.semicolons": "insert",
|
"typescript.format.semicolons": "insert",
|
||||||
"typescript.preferences.quoteStyle": "double",
|
"typescript.preferences.quoteStyle": "double",
|
||||||
"javascript.preferences.quoteStyle": "double",
|
"javascript.preferences.quoteStyle": "double",
|
||||||
|
|
||||||
"gitlens.remotes": [
|
"gitlens.remotes": [
|
||||||
{
|
{
|
||||||
"domain": "codeberg.org",
|
"domain": "codeberg.org",
|
||||||
"type": "Gitea"
|
"type": "Gitea"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"vencord-companion.showSidebar": true,
|
||||||
}
|
}
|
||||||
|
|
|
@ -134,7 +134,7 @@ export function initWs(isManual = false) {
|
||||||
nonce: d.nonce
|
nonce: d.nonce
|
||||||
};
|
};
|
||||||
// data.nonce = d.nonce;
|
// data.nonce = d.nonce;
|
||||||
ws.send(JSON.stringify(data));
|
ws.send(JSON.stringify(toSend));
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.info("Received Message:", d.type, "\n", d.data);
|
logger.info("Received Message:", d.type, "\n", d.data);
|
||||||
|
@ -412,17 +412,20 @@ export function initWs(isManual = false) {
|
||||||
.then(() => {
|
.then(() => {
|
||||||
resolve();
|
resolve();
|
||||||
replyData({
|
replyData({
|
||||||
type: "allModules",
|
type: "moduleList",
|
||||||
data: Object.keys(wreq.m),
|
data: {
|
||||||
|
modules: Object.keys(wreq.m)
|
||||||
|
},
|
||||||
ok: true
|
ok: true
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.catch(e => {
|
.catch(e => {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
replyData({
|
replyData({
|
||||||
type: "allModules",
|
type: "moduleList",
|
||||||
ok: false,
|
ok: false,
|
||||||
data: e.toString()
|
error: String(e),
|
||||||
|
data: null
|
||||||
});
|
});
|
||||||
reject(e);
|
reject(e);
|
||||||
});
|
});
|
||||||
|
|
|
@ -15,6 +15,7 @@ export type Base = {
|
||||||
ok: true;
|
ok: true;
|
||||||
} | {
|
} | {
|
||||||
ok: false;
|
ok: false;
|
||||||
|
data?: any;
|
||||||
error: string;
|
error: string;
|
||||||
};
|
};
|
||||||
export type Nonce = {
|
export type Nonce = {
|
||||||
|
|
Loading…
Reference in a new issue