satisfy eslint

This commit is contained in:
Xinto 2023-09-26 15:19:59 +04:00
parent 676473d9da
commit 4058eeb1f9

View file

@ -183,7 +183,9 @@ function initMenuBar(win: BrowserWindow) {
app.quit(); app.quit();
} }
}, },
...(!isDarwin ? [] : [ ...(!isDarwin
? []
: ([
{ {
type: "separator" type: "separator"
}, },
@ -191,26 +193,28 @@ function initMenuBar(win: BrowserWindow) {
label: "Settings", label: "Settings",
accelerator: "CmdOrCtrl+,", accelerator: "CmdOrCtrl+,",
async click() { async click() {
mainWin.webContents.executeJavaScript("Vencord.Webpack.Common.SettingsRouter.open('My Account')") mainWin.webContents.executeJavaScript(
"Vencord.Webpack.Common.SettingsRouter.open('My Account')"
);
} }
}, },
{ {
type: "separator" type: "separator"
}, },
{ {
label: "Hide Vesktop", //Should probably remove the label, but it says "Hide VencordDesktop" instead of "Hide Vesktop" label: "Hide Vesktop", // Should probably remove the label, but it says "Hide VencordDesktop" instead of "Hide Vesktop"
role: "hide" role: "hide"
}, },
{ {
role: "hideOthers" role: "hideOthers"
}, },
{ {
role: "unhide", role: "unhide"
}, },
{ {
type: "separator" type: "separator"
} }
] satisfies MenuItemList), ] satisfies MenuItemList)),
{ {
label: "Quit", label: "Quit",
accelerator: wantCtrlQ ? "CmdOrCtrl+Q" : void 0, accelerator: wantCtrlQ ? "CmdOrCtrl+Q" : void 0,