diff options
-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}`); |