QuickCss: Hide MenuBar; explicitly enable contextIsolation

Closes #260
This commit is contained in:
Vendicated 2022-12-02 14:11:20 +01:00
parent b9e9d9bd64
commit 5e97cc0fc3
No known key found for this signature in database
GPG key ID: EC781ADFB93EFFA3

View file

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