diff --git a/README.md b/README.md index 8936938..759ef48 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ Electron-tabs uses webviews, so you first need to use the following `webPreferen const mainWindow = new electron.BrowserWindow({ webPreferences: { nodeIntegration: true, + contextIsolation: false, // needed for Electron >= 12.x webviewTag: true } }); diff --git a/demo/app.js b/demo/app.js index f485185..d9763cb 100644 --- a/demo/app.js +++ b/demo/app.js @@ -5,6 +5,7 @@ app.on('ready', function () { const mainWindow = new electron.BrowserWindow({ webPreferences: { nodeIntegration: true, + contextIsolation: false, webviewTag: true } }); diff --git a/package.json b/package.json index 4dcae1d..c941b41 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,6 @@ "author": "brrd", "license": "MIT", "devDependencies": { - "electron": "^8.0.0" + "electron": "^17.1.2" } }