From ddf845d5b67ea570f477831076a9ab9c42558781 Mon Sep 17 00:00:00 2001 From: Mateusz Krzeszowiak Date: Wed, 22 Nov 2023 18:54:42 +0100 Subject: [PATCH] Fix profiling for stores with custom domains --- src/devtools.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}`)); },