mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-09 17:36:23 +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.preferences.quoteStyle": "double",
|
||||
"javascript.preferences.quoteStyle": "double",
|
||||
|
||||
"gitlens.remotes": [
|
||||
{
|
||||
"domain": "codeberg.org",
|
||||
"type": "Gitea"
|
||||
}
|
||||
]
|
||||
],
|
||||
"vencord-companion.showSidebar": true,
|
||||
}
|
||||
|
|
|
@ -134,7 +134,7 @@ export function initWs(isManual = false) {
|
|||
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);
|
||||
|
@ -412,17 +412,20 @@ export function initWs(isManual = false) {
|
|||
.then(() => {
|
||||
resolve();
|
||||
replyData({
|
||||
type: "allModules",
|
||||
data: Object.keys(wreq.m),
|
||||
type: "moduleList",
|
||||
data: {
|
||||
modules: Object.keys(wreq.m)
|
||||
},
|
||||
ok: true
|
||||
});
|
||||
})
|
||||
.catch(e => {
|
||||
console.error(e);
|
||||
replyData({
|
||||
type: "allModules",
|
||||
type: "moduleList",
|
||||
ok: false,
|
||||
data: e.toString()
|
||||
error: String(e),
|
||||
data: null
|
||||
});
|
||||
reject(e);
|
||||
});
|
||||
|
|
|
@ -15,6 +15,7 @@ export type Base = {
|
|||
ok: true;
|
||||
} | {
|
||||
ok: false;
|
||||
data?: any;
|
||||
error: string;
|
||||
};
|
||||
export type Nonce = {
|
||||
|
|
Loading…
Reference in a new issue