From 5e97cc0fc366acc268665c359a35e7c085364576 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Fri, 2 Dec 2022 14:11:20 +0100 Subject: [PATCH] QuickCss: Hide MenuBar; explicitly enable contextIsolation Closes #260 --- src/ipcMain/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ipcMain/index.ts b/src/ipcMain/index.ts index ba85eeb0..86a233c7 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}`);