disable browser throttling

This commit is contained in:
Olivier Gagnon 2021-12-16 15:46:26 -05:00
parent 55d386a504
commit 1cca819f87
5 changed files with 7 additions and 5 deletions

File diff suppressed because one or more lines are too long

@ -12,6 +12,7 @@ const debug = false;
function createWindow(killall) { function createWindow(killall) {
const win = new BrowserWindow({ const win = new BrowserWindow({
show: false, show: false,
backgroundThrottling: false,
}); });
win.removeMenu(); win.removeMenu();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -109,6 +109,7 @@
"test:watch": "jest --watch", "test:watch": "jest --watch",
"watch": "webpack --watch --mode production", "watch": "webpack --watch --mode production",
"watch:dev": "webpack --watch --mode development", "watch:dev": "webpack --watch --mode development",
"electron": "cp -r electron/* .package && cp index.html .package && cp main.bundle.js .package && cp dist/vendor.bundle.js .package/dist/ && cp -r dist/ext .package/dist/ && electron-packager .package bitburner --all --out .build --overwrite --icon .package/icon.png" "electron": "cp -r electron/* .package && cp index.html .package && cp main.bundle.js .package && cp dist/vendor.bundle.js .package/dist/ && cp -r dist/ext .package/dist/ && electron-packager .package bitburner --all --out .build --overwrite --icon .package/icon.png",
"allbuild": "npm run build && npm run electron && git add --all && git commit --amend --no-edit"
} }
} }