mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 01:23:49 +01:00
BUGFIX: Proper default title for loaded RunningScripts (#557)
This commit is contained in:
parent
4d1cdaad32
commit
0d6015104e
@ -163,6 +163,7 @@ export class RunningScript {
|
||||
static fromJSON(value: IReviverValue): RunningScript {
|
||||
const runningScript = Generic_fromJSON(RunningScript, value.data, includedProperties);
|
||||
if (!runningScript.scriptKey) runningScript.scriptKey = scriptKey(runningScript.filename, runningScript.args);
|
||||
if (!runningScript.title) runningScript.title = `${runningScript.filename} ${runningScript.args.join(" ")}`;
|
||||
return runningScript;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user