diff --git a/src/devtools.ts b/src/devtools.ts index abfa27c..c455f78 100644 --- a/src/devtools.ts +++ b/src/devtools.ts @@ -84,7 +84,7 @@ function clear() { function getInspectedWindowURL(): Promise { 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}`)); },