Disable context isolation (to load ffmpeg wasm)

This commit is contained in:
TC
2021-01-13 21:28:42 +01:00
parent 9ad1dad6df
commit 39c8031cd7
6 changed files with 35 additions and 26 deletions

View File

@ -86,7 +86,9 @@ function createMainWindow() {
backgroundColor: "#000",
show: false,
webPreferences: {
contextIsolation: true,
// TODO: re-enable contextIsolation once it can work with ffmepg.wasm
// Possible bundling? https://github.com/ffmpegwasm/ffmpeg.wasm/issues/126
contextIsolation: false,
preload: path.join(__dirname, "preload.js"),
nodeIntegrationInSubFrames: true,
nativeWindowOpen: true, // window.open return Window object(like in regular browsers), not BrowserWindowProxy