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; }