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