Browse Source

strip fragment (#1859)

David Luzar 5 years ago
parent
commit
d9e84b90ce
1 changed files with 6 additions and 0 deletions
  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;