1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Removing use of window object from sentry code (#16022)

This commit is contained in:
Jyoti Puri 2022-10-05 22:47:58 +05:30 committed by GitHub
parent 047d664c2e
commit 3271b812e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -226,7 +226,7 @@ function rewriteReportUrls(report) {
}
function toMetamaskUrl(origUrl) {
const filePath = origUrl.split(window.location.origin)[1];
const filePath = origUrl.split(globalThis.location.origin)[1];
if (!filePath) {
return origUrl;
}