Browse Source

strip fragment (#1859)

pull/1860/head
David Luzar 6 years ago committed by GitHub
parent
commit
d9e84b90ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/index.tsx

6
src/index.tsx

@ -53,6 +53,12 @@ Sentry.init({ @@ -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;

Loading…
Cancel
Save