Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: ignore `Error in input stream` global error

Abdullah Atta956e5373d12f
diff --git a/apps/web/src/components/error-boundary/index.tsx b/apps/web/src/components/error-boundary/index.tsx
index c7e6e3883..ea52c325f 100644
--- a/apps/web/src/components/error-boundary/index.tsx
+++ b/apps/web/src/components/error-boundary/index.tsx
@@ -39,6 +39,11 @@ export function GlobalErrorHandler(props: PropsWithChildren) {
showBoundary(e.error || error);
}
function handleUnhandledRejection(e: PromiseRejectionEvent) {
+ if (
+ e.reason instanceof TypeError &&
+ e.reason.message === "Error in input stream"
+ )
+ return;
showBoundary(e.reason);
}
window.addEventListener("unhandledrejection", handleUnhandledRejection);