Enables context isolation for loading window

This commit is contained in:
Josh Perez 2021-09-17 18:12:58 -04:00 committed by GitHub
parent ccfb9579ad
commit 6c906d5da8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 17 additions and 39 deletions

View file

@ -1340,7 +1340,7 @@ app.on('ready', async () => {
webPreferences: {
...defaultWebPrefs,
nodeIntegration: false,
contextIsolation: false,
contextIsolation: true,
preload: path.join(__dirname, 'ts', 'windows', 'loading', 'preload.js'),
},
icon: windowIcon,