Merge pull request #144 from MCMicS/feature/electron17

Demo: upgrade to electron 17.1.2
This commit is contained in:
Thomas Brouard 2022-03-23 08:45:08 +01:00 committed by GitHub
commit d0fcb23e38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View file

@ -24,6 +24,7 @@ Electron-tabs uses webviews, so you first need to use the following `webPreferen
const mainWindow = new electron.BrowserWindow({ const mainWindow = new electron.BrowserWindow({
webPreferences: { webPreferences: {
nodeIntegration: true, nodeIntegration: true,
contextIsolation: false, // needed for Electron >= 12.x
webviewTag: true webviewTag: true
} }
}); });

View file

@ -5,6 +5,7 @@ app.on('ready', function () {
const mainWindow = new electron.BrowserWindow({ const mainWindow = new electron.BrowserWindow({
webPreferences: { webPreferences: {
nodeIntegration: true, nodeIntegration: true,
contextIsolation: false,
webviewTag: true webviewTag: true
} }
}); });

View file

@ -20,6 +20,6 @@
"author": "brrd", "author": "brrd",
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
"electron": "^8.0.0" "electron": "^17.1.2"
} }
} }