Fix QuickCSS on electron 20+

This commit is contained in:
Vendicated 2023-02-17 15:37:38 +01:00
parent 3ca87848e5
commit ff1f337699
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905

View file

@ -91,7 +91,8 @@ ipcMain.handle(IpcEvents.OPEN_MONACO_EDITOR, async () => {
webPreferences: { webPreferences: {
preload: join(__dirname, "preload.js"), preload: join(__dirname, "preload.js"),
contextIsolation: true, contextIsolation: true,
nodeIntegration: false nodeIntegration: false,
sandbox: false
} }
}); });
await win.loadURL(`data:text/html;base64,${monacoHtml}`); await win.loadURL(`data:text/html;base64,${monacoHtml}`);