From 4cdab4016c631b555ce8a6768f3ee64d7b543610 Mon Sep 17 00:00:00 2001 From: mcmics Date: Tue, 22 Mar 2022 20:07:09 +0100 Subject: [PATCH] Demo: upgrade to electron 17.1.2 --- README.md | 1 + demo/app.js | 1 + package.json | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) 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" } }