mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 14:59:16 +02:00
fix killall steam not working
This commit is contained in:
@@ -9,14 +9,15 @@ if (greenworks.init()) {
|
||||
|
||||
const debug = false;
|
||||
|
||||
function createWindow() {
|
||||
function createWindow(killall) {
|
||||
const win = new BrowserWindow({
|
||||
show: false,
|
||||
});
|
||||
|
||||
win.removeMenu();
|
||||
win.maximize();
|
||||
win.loadFile("index.html");
|
||||
noScripts = killall ? { query: { noScripts: killall } } : {};
|
||||
win.loadFile("index.html", noScripts);
|
||||
win.show();
|
||||
if (debug) win.webContents.openDevTools();
|
||||
|
||||
@@ -75,7 +76,7 @@ function createWindow() {
|
||||
if (intervalID) clearInterval(intervalID);
|
||||
win.webContents.forcefullyCrashRenderer();
|
||||
win.close();
|
||||
createWindow();
|
||||
createWindow(true);
|
||||
},
|
||||
},
|
||||
],
|
||||
@@ -110,5 +111,5 @@ function createWindow() {
|
||||
}
|
||||
|
||||
app.whenReady().then(() => {
|
||||
createWindow();
|
||||
createWindow(false);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user