From dbdf06869b08148f9c33c82e03456670a43b1457 Mon Sep 17 00:00:00 2001 From: Matt Sykes Date: Thu, 25 Jun 2026 12:57:29 -0400 Subject: [PATCH] Exclude quantummetric caused errors from logging unhandled rejection Add quantummetric.com to the exclusion of unhandled rejection logging similar to browser extensions --- src/App.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index d8600aa87..e0bce4693 100644 --- a/src/App.vue +++ b/src/App.vue @@ -87,15 +87,19 @@ window.onerror = (msg, url, line, col, error) => { return suppressErrorAlert; }; -function isBrowserExtensionUnhandledRejection(reason) { +function isThirdPartyUnhandledRejection(reason) { const stack = reason instanceof Error ? reason.stack : ""; - return typeof stack === "string" && stack.includes("chrome-extension://"); + if (typeof stack !== "string") { + return false; + } + + return stack.includes("chrome-extension://") || stack.includes("quantummetric.com"); } // Log Promise rejections that are never handled (.catch / await try/catch), e.g. fire-and-forget async. window.addEventListener("unhandledrejection", (event) => { const reason = event.reason; - if (isBrowserExtensionUnhandledRejection(reason)) { + if (isThirdPartyUnhandledRejection(reason)) { return; }