strip fragment (#1859)

This commit is contained in:
David Luzar 2020-07-02 12:02:16 +02:00 committed by GitHub
parent 79c3b846d7
commit d9e84b90ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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