diff options
author | Vendicated <vendicated@riseup.net> | 2022-12-02 14:11:20 +0100 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-12-02 14:11:20 +0100 |
commit | 5e97cc0fc366acc268665c359a35e7c085364576 (patch) | |
tree | fa4cddc455a7fc0d499674c87ba5c71a21d91065 /src/ipcMain | |
parent | b9e9d9bd64ae5873e4406e2c4093fb9772b61783 (diff) | |
download | Vencord-5e97cc0fc366acc268665c359a35e7c085364576.tar.gz Vencord-5e97cc0fc366acc268665c359a35e7c085364576.tar.bz2 Vencord-5e97cc0fc366acc268665c359a35e7c085364576.zip |
QuickCss: Hide MenuBar; explicitly enable contextIsolation
Closes #260
Diffstat (limited to 'src/ipcMain')
-rw-r--r-- | src/ipcMain/index.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ipcMain/index.ts b/src/ipcMain/index.ts index ba85eeb..86a233c 100644 --- a/src/ipcMain/index.ts +++ b/src/ipcMain/index.ts @@ -89,8 +89,12 @@ export function initIpc(mainWindow: BrowserWindow) { ipcMain.handle(IpcEvents.OPEN_MONACO_EDITOR, async () => { const win = new BrowserWindow({ title: "QuickCss Editor", + autoHideMenuBar: true, + darkTheme: true, webPreferences: { preload: join(__dirname, "preload.js"), + contextIsolation: true, + nodeIntegration: false } }); await win.loadURL(`data:text/html;base64,${monacoHtml}`); |