fix(desktop): use different method to send messages across main and render without node integration in preload (#1769)

This commit is contained in:
Mo
2022-10-07 14:30:07 -05:00
committed by GitHub
parent a1352d9f65
commit 20226c3269
4 changed files with 47 additions and 69 deletions

View File

@@ -166,6 +166,7 @@ async function createWindow(store: Store): Promise<Electron.BrowserWindow> {
spellcheck: true,
nodeIntegration: isTesting(),
contextIsolation: true,
sandbox: true,
preload: Paths.preloadJs,
},
})