mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 01:33:54 +01:00
28 lines
618 B
JavaScript
28 lines
618 B
JavaScript
const { app, BrowserWindow, Menu, globalShortcut } = require("electron");
|
|
|
|
Menu.setApplicationMenu(false);
|
|
function createWindow() {
|
|
const win = new BrowserWindow({
|
|
show: false,
|
|
webPreferences: {
|
|
devTools: false,
|
|
},
|
|
});
|
|
|
|
win.removeMenu();
|
|
win.maximize();
|
|
win.loadFile("index.html");
|
|
win.show();
|
|
// win.webContents.openDevTools();
|
|
globalShortcut.register("f5", function () {
|
|
win.loadFile("index.html");
|
|
});
|
|
globalShortcut.register("f8", function () {
|
|
win.loadFile("index.html", { query: { noScripts: "true" } });
|
|
});
|
|
}
|
|
|
|
app.whenReady().then(() => {
|
|
createWindow();
|
|
});
|