mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-19 04:35:46 +01:00
uncaught promises no longer spam console (#134)
This commit is contained in:
parent
124e64379a
commit
2cc6e41a7e
@ -2,6 +2,7 @@ import { handleUnknownError } from "./Netscript/NetscriptHelpers";
|
||||
|
||||
export function setupUncaughtPromiseHandler(): void {
|
||||
window.addEventListener("unhandledrejection", (e) => {
|
||||
e.preventDefault();
|
||||
handleUnknownError(
|
||||
e.reason,
|
||||
null,
|
||||
|
Loading…
Reference in New Issue
Block a user