Skip to content

Commit d483cfc

Browse files
committed
Fix compatibility issue
`webPreferences.contextIsolation: false` is needed to use `require()` in Electron 12 and up.
1 parent 41fbc68 commit d483cfc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/background.js

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ function createWindow () {
9696
resizable: false,
9797
webPreferences: {
9898
nodeIntegration: true,
99+
contextIsolation: false,
99100
devTools: true,
100101
// webSecurity: false
101102
}

0 commit comments

Comments
 (0)