mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 06:48:42 +02:00
electron always dev tools
This commit is contained in:
@@ -5,7 +5,7 @@ function createWindow() {
|
||||
const win = new BrowserWindow({
|
||||
show: false,
|
||||
webPreferences: {
|
||||
devTools: false,
|
||||
devTools: true,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -13,7 +13,7 @@ function createWindow() {
|
||||
win.maximize();
|
||||
win.loadFile("index.html");
|
||||
win.show();
|
||||
// win.webContents.openDevTools();
|
||||
win.webContents.openDevTools();
|
||||
globalShortcut.register("f5", function () {
|
||||
win.loadFile("index.html");
|
||||
});
|
||||
|
||||
@@ -480,7 +480,8 @@ export function queryStatFromString(str) {
|
||||
|
||||
/******* Working functions *******/
|
||||
export function resetWorkStatus(generalType, group, workType) {
|
||||
if (generalType === this.workType && group === this.companyName) return;
|
||||
if (this.workType !== CONSTANTS.WorkTypeFaction && generalType === this.workType && group === this.companyName)
|
||||
return;
|
||||
if (generalType === this.workType && group === this.currentWorkFactionName && workType === this.factionWorkType)
|
||||
return;
|
||||
if (this.isWorking) this.singularityStopWork();
|
||||
|
||||
Reference in New Issue
Block a user