Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Commit

Permalink
Force disable context isolation (#45)
Browse files Browse the repository at this point in the history
It appears to be incompatible with astilectron, but it's enabled by default by Electron starting with major version 12.
Issue: asticode/go-astilectron#318
  • Loading branch information
paolobelluticm committed May 6, 2021
1 parent 0f136df commit 5d29dfd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Expand Up @@ -401,6 +401,7 @@ function windowCreate(json) {
if (!json.windowOptions.webPreferences) {
json.windowOptions.webPreferences = {}
}
json.windowOptions.webPreferences.contextIsolation = false
json.windowOptions.webPreferences.nodeIntegration = true
elements[json.targetID] = new BrowserWindow(json.windowOptions)
windowOptions[json.targetID] = json.windowOptions
Expand Down

0 comments on commit 5d29dfd

Please sign in to comment.