summaryrefslogtreecommitdiff
path: root/src/content
diff options
context:
space:
mode:
Diffstat (limited to 'src/content')
-rw-r--r--src/content/onScriptDisabled.js2
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;
}