1
0
Fork 1
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:
sadan 2025-01-07 01:47:01 -05:00
parent 32b0f29b2e
commit 759e3fedf4
No known key found for this signature in database
3 changed files with 11 additions and 7 deletions

View file

@ -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,
}

View file

@ -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);
});

View file

@ -15,6 +15,7 @@ export type Base = {
ok: true;
} | {
ok: false;
data?: any;
error: string;
};
export type Nonce = {