electron-tabs/demo/app.js

16 lines
375 B
JavaScript
Raw Normal View History

2022-05-23 17:17:06 +00:00
const electron = require("electron");
2017-06-27 20:38:44 +00:00
const app = electron.app;
2022-05-23 17:17:06 +00:00
app.on("ready", function () {
2020-02-04 10:13:57 +00:00
const mainWindow = new electron.BrowserWindow({
webPreferences: {
webviewTag: true
}
});
2022-05-23 17:17:06 +00:00
mainWindow.loadURL("file://" + __dirname + "/electron-tabs.html");
mainWindow.on("ready-to-show", function () {
2020-02-04 10:13:57 +00:00
mainWindow.show();
mainWindow.focus();
});
2017-06-27 20:38:44 +00:00
});