mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-24 10:12:53 +02:00
Add dialog when app is unresponsive to reload
Checks the electron event 'unresponsive' and triggers a reload / cancel dialog. Allows all scripts to be killed, checked by default. Also adds a warning to the terminal when noScript has been executed.
This commit is contained in:
@@ -34,6 +34,7 @@ import { parse } from "acorn";
|
||||
import { simple as walksimple } from "acorn-walk";
|
||||
import { areFilesEqual } from "./Terminal/DirectoryHelpers";
|
||||
import { Player } from "./Player";
|
||||
import { Terminal } from "./Terminal";
|
||||
|
||||
// Netscript Ports are instantiated here
|
||||
export const NetscriptPorts: IPort[] = [];
|
||||
@@ -609,6 +610,7 @@ export function updateOnlineScriptTimes(numCycles = 1): void {
|
||||
export function loadAllRunningScripts(): void {
|
||||
const skipScriptLoad = window.location.href.toLowerCase().indexOf("?noscripts") !== -1;
|
||||
if (skipScriptLoad) {
|
||||
Terminal.warn('Skipped loading player scripts during startup');
|
||||
console.info("Skipping the load of any scripts during startup");
|
||||
}
|
||||
for (const server of GetAllServers()) {
|
||||
|
||||
Reference in New Issue
Block a user