Explorar o código

strip fragment (#1859)

David Luzar %!s(int64=5) %!d(string=hai) anos
pai
achega
d9e84b90ce
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      src/index.tsx

+ 6 - 0
src/index.tsx

@@ -53,6 +53,12 @@ Sentry.init({
       levels: ["error"],
     }),
   ],
+  beforeSend(event) {
+    if (event.request?.url) {
+      event.request.url = event.request.url.replace(/#.*$/, "");
+    }
+    return event;
+  },
 });
 
 window.__EXCALIDRAW_SHA__ = REACT_APP_GIT_SHA;