mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 23:08:36 +02:00
ok
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
const { app, BrowserWindow, Menu, globalShortcut, shell } = require("electron");
|
||||
|
||||
const debug = false;
|
||||
|
||||
Menu.setApplicationMenu(false);
|
||||
function createWindow() {
|
||||
const win = new BrowserWindow({
|
||||
show: false,
|
||||
webPreferences: {
|
||||
// devTools: true,
|
||||
devTools: debug,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -13,7 +15,8 @@ function createWindow() {
|
||||
win.maximize();
|
||||
win.loadFile("index.html");
|
||||
win.show();
|
||||
// win.webContents.openDevTools();
|
||||
if(debug)
|
||||
win.webContents.openDevTools();
|
||||
globalShortcut.register("f5", function () {
|
||||
win.loadFile("index.html");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user