From ea8a21f9ba6ffc5b1ed1a85d4f0b08ef0c878167 Mon Sep 17 00:00:00 2001 From: KATO Kanryu Date: Sat, 21 Sep 2019 23:01:46 +0900 Subject: [PATCH] add options nodeIntegration,webviewTag into the demo --- demo/app.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/demo/app.js b/demo/app.js index 920790d..504a593 100644 --- a/demo/app.js +++ b/demo/app.js @@ -6,7 +6,12 @@ app.setName('electron-tabs-demo'); app.on('ready', function () { - const mainWindow = new electron.BrowserWindow(); + const mainWindow = new electron.BrowserWindow({ + webPreferences: { + nodeIntegration: true, + webviewTag: true + } + }); mainWindow.loadURL('file://' + __dirname + '/electron-tabs.html'); mainWindow.on('ready-to-show', function () { mainWindow.show();