electron-tabs/demo/app.js
Thomas Brouard 0c0a724245 Fix indent
2020-02-04 11:13:57 +01:00

18 lines
440 B
JavaScript

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