Skip to content

Commit 00a1e9b

Browse files
make panic message show actual url
1 parent c28c12a commit 00a1e9b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/term_ctl.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,8 +573,10 @@ export class WrappedTerminal extends Terminal {
573573
this.writeln("Processes running at time of panic:");
574574
this.writeln(process_info || "None.");
575575

576-
this.write(NEWLINE);
577-
this.writeln("OS unrecoverable? Visit https://ollieg.codes/recover_fs for options to recover your filesystem.");
576+
if (typeof window !== "undefined") {
577+
this.write(NEWLINE);
578+
this.writeln(`OS unrecoverable? Visit ${window.location.origin}/recover_fs for options to recover your filesystem.`);
579+
}
578580

579581
this.writeln(ANSI.STYLE.reset_all);
580582
}

0 commit comments

Comments
 (0)