mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-17 13:13:49 +01:00
noscripts backup
This commit is contained in:
parent
b0929e3cff
commit
6c5842d2e7
@ -9,8 +9,9 @@ if (greenworks.init()) {
|
|||||||
|
|
||||||
const debug = false;
|
const debug = false;
|
||||||
|
|
||||||
|
let win = null;
|
||||||
function createWindow(killall) {
|
function createWindow(killall) {
|
||||||
const win = new BrowserWindow({
|
win = new BrowserWindow({
|
||||||
show: false,
|
show: false,
|
||||||
backgroundThrottling: false,
|
backgroundThrottling: false,
|
||||||
});
|
});
|
||||||
@ -112,9 +113,14 @@ function createWindow(killall) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
app.whenReady().then(() => {
|
app.whenReady().then(() => {
|
||||||
createWindow(false);
|
createWindow(process.argv.includes("--no-scripts"));
|
||||||
});
|
});
|
||||||
|
|
||||||
app.on("window-all-closed", function () {
|
app.on("window-all-closed", function () {
|
||||||
app.quit();
|
app.quit();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
app.on("before-quit", () => {
|
||||||
|
win.removeAllListeners("close");
|
||||||
|
win.close();
|
||||||
|
});
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user