mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 06:48:42 +02:00
uncaught promises no longer spam console (#134)
This commit is contained in:
@@ -2,6 +2,7 @@ import { handleUnknownError } from "./Netscript/NetscriptHelpers";
|
||||
|
||||
export function setupUncaughtPromiseHandler(): void {
|
||||
window.addEventListener("unhandledrejection", (e) => {
|
||||
e.preventDefault();
|
||||
handleUnknownError(
|
||||
e.reason,
|
||||
null,
|
||||
|
||||
Reference in New Issue
Block a user