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

feature/default_network_editable
Jyoti Puri 2 years ago committed by GitHub
parent 047d664c2e
commit 3271b812e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/scripts/lib/setupSentry.js

@ -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;
}

Loading…
Cancel
Save