mirror of
https://ark.sudovanilla.org/Korbs/electron-tabs.git
synced 2024-12-23 03:53:53 +00:00
17 lines
404 B
JavaScript
17 lines
404 B
JavaScript
const electron = require('electron');
|
|
const app = electron.app;
|
|
|
|
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();
|
|
});
|
|
});
|