Pārlūkot izejas kodu

[web] Add `https://analytics.propensity-abm.com/` to the ignored Propensity NetworkError (#27980)

GitOrigin-RevId: 42dec70d7e4d1bb1207c35267bb7ef6629152d65
Antoine Clausse 1 gadu atpakaļ
vecāks
revīzija
a6f3329bb1

+ 6 - 3
services/web/frontend/js/infrastructure/error-reporter.ts

@@ -21,10 +21,13 @@ const isPropensityNetworkError = (err: ErrorEvent) => {
     return false
   }
 
+  const breadcrumbUrl = errorBreadcrumbs[0]?.data?.url
   return Boolean(
-    errorBreadcrumbs[0]?.data?.url?.startsWith(
-      'https://analytics.propensity.com/'
-    )
+    breadcrumbUrl &&
+      [
+        'https://analytics.propensity.com/',
+        'https://analytics.propensity-abm.com/',
+      ].some(url => breadcrumbUrl.startsWith(url))
   )
 }