2017-06-27 15:38:44 -05:00
|
|
|
const electron = require('electron');
|
|
|
|
const app = electron.app;
|
|
|
|
|
|
|
|
app.setName('electron-tabs-demo');
|
|
|
|
|
|
|
|
|
|
|
|
app.on('ready', function () {
|
|
|
|
|
2019-09-21 09:01:46 -05:00
|
|
|
const mainWindow = new electron.BrowserWindow({
|
|
|
|
webPreferences: {
|
|
|
|
nodeIntegration: true,
|
|
|
|
webviewTag: true
|
|
|
|
}
|
|
|
|
});
|
2017-06-27 15:38:44 -05:00
|
|
|
mainWindow.loadURL('file://' + __dirname + '/electron-tabs.html');
|
|
|
|
mainWindow.on('ready-to-show', function () {
|
|
|
|
mainWindow.show();
|
|
|
|
mainWindow.focus();
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|