Skip to content

Commit

Permalink
Merge pull request #136 from Shopify/fix-request-redirect
Browse files Browse the repository at this point in the history
Fix profiling for stores with custom domains
  • Loading branch information
mgmanzella authored Apr 1, 2024
2 parents 417f2e3 + ddf845d commit 6f78e5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/devtools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function clear() {
function getInspectedWindowURL(): Promise<URL> {
return new Promise(resolve => {
chrome.devtools.inspectedWindow.eval(
`(/myshopify\\.io/.test(document.location.host) ? document.location.host : Shopify.shop) + document.location.pathname + document.location.search`,
`document.location.host + document.location.pathname + document.location.search`,
function(currentUrl: string) {
resolve(new URL(`https://${currentUrl}`));
},
Expand Down

0 comments on commit 6f78e5b

Please sign in to comment.