diff options
Diffstat (limited to 'src/content')
-rw-r--r-- | src/content/onScriptDisabled.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content/onScriptDisabled.js b/src/content/onScriptDisabled.js index 3841f94..3606ede 100644 --- a/src/content/onScriptDisabled.js +++ b/src/content/onScriptDisabled.js @@ -13,7 +13,7 @@ function onScriptDisabled() { let urlObj; if (url) { try { - urlObj = new URL(url.replace(/^(['"]?)(.+?)\1$/, '$2')); + urlObj = new URL(url.replace(/^(['"]?)(.+?)\1$/, '$2'), document.URL); if (!/^https?:/.test(urlObj.protocol)) { continue; } |