summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhackademix2018-07-16 23:45:10 +0200
committerhackademix2018-07-16 23:45:10 +0200
commit31b2f5bbd254789c9dddf272bc8fb4cde8271732 (patch)
tree7c2338bd9550c8ef73bd0e0e809ad84043144b8b
parent859cb65d8289fcb81b31f6fdd292f13fdde78afb (diff)
downloadnoscript-31b2f5bbd254789c9dddf272bc8fb4cde8271732.tar.gz
noscript-31b2f5bbd254789c9dddf272bc8fb4cde8271732.tar.xz
noscript-31b2f5bbd254789c9dddf272bc8fb4cde8271732.zip
Fixed regression breaking meta refreshes with relative URLs.
-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;
}