From 31b2f5bbd254789c9dddf272bc8fb4cde8271732 Mon Sep 17 00:00:00 2001 From: hackademix Date: Mon, 16 Jul 2018 23:45:10 +0200 Subject: Fixed regression breaking meta refreshes with relative URLs. --- src/content/onScriptDisabled.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3