const electron = require('electron');
const app = electron.app;

app.setName('electron-tabs-demo');


app.on('ready', function () {

    const mainWindow = new electron.BrowserWindow();
    mainWindow.loadURL('file://' + __dirname + '/electron-tabs.html');
    mainWindow.on('ready-to-show', function () {
        mainWindow.show();
        mainWindow.focus();
    });

});

const electron = require('electron');
const app = electron.app;

app.setName('electron-tabs-demo');


app.on('ready', function () {

    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();
        mainWindow.focus();
    });

});

add options nodeIntegration,webviewTag into the demo