electron-tabs/demo/app.js
2022-05-23 19:17:06 +02:00

16 lines
375 B
JavaScript

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