uncaught promises no longer spam console (#134)

This commit is contained in:
Snarling 2022-10-19 17:13:15 -04:00 committed by GitHub
parent 124e64379a
commit 2cc6e41a7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,6 +2,7 @@ import { handleUnknownError } from "./Netscript/NetscriptHelpers";
export function setupUncaughtPromiseHandler(): void {
window.addEventListener("unhandledrejection", (e) => {
e.preventDefault();
handleUnknownError(
e.reason,
null,