mirror of
https://ark.sudovanilla.org/Korbs/electron-tabs.git
synced 2024-12-23 03:53:53 +00:00
Merge pull request #79 from kanryu/master
fixes #76 add options nodeIntegration,webviewTag into the demo for over electron-5.0
This commit is contained in:
commit
5a58070f1d
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue