MISC: Improve exception alert (#1709)

This commit is contained in:
catloversg
2024-10-22 10:36:29 +07:00
committed by GitHub
parent 8d1cfb2d97
commit bc51733fbe
10 changed files with 47 additions and 59 deletions
+3 -3
View File
@@ -73,7 +73,7 @@ import { unalias } from "./commands/unalias";
import { vim } from "./commands/vim";
import { weaken } from "./commands/weaken";
import { wget } from "./commands/wget";
import { hash } from "../hash/hash";
import { commitHash } from "../utils/helpers/commitHash";
import { apr1 } from "./commands/apr1";
import { changelog } from "./commands/changelog";
import { clear } from "./commands/clear";
@@ -139,7 +139,7 @@ export class Terminal {
commandHistoryIndex = 0;
outputHistory: (Output | Link | RawOutput)[] = [
new Output(`Bitburner v${CONSTANTS.VersionString} (${hash()})`, "primary"),
new Output(`Bitburner v${CONSTANTS.VersionString} (${commitHash()})`, "primary"),
];
// True if a Coding Contract prompt is opened
@@ -613,7 +613,7 @@ export class Terminal {
}
clear(): void {
this.outputHistory = [new Output(`Bitburner v${CONSTANTS.VersionString} (${hash()})`, "primary")];
this.outputHistory = [new Output(`Bitburner v${CONSTANTS.VersionString} (${commitHash()})`, "primary")];
TerminalEvents.emit();
TerminalClearEvents.emit();
}