diff options
author | hackademix | 2018-07-16 23:45:10 +0200 |
---|---|---|
committer | hackademix | 2018-07-16 23:45:10 +0200 |
commit | 31b2f5bbd254789c9dddf272bc8fb4cde8271732 (patch) | |
tree | 7c2338bd9550c8ef73bd0e0e809ad84043144b8b /src/content | |
parent | 859cb65d8289fcb81b31f6fdd292f13fdde78afb (diff) | |
download | noscript-31b2f5bbd254789c9dddf272bc8fb4cde8271732.tar.gz noscript-31b2f5bbd254789c9dddf272bc8fb4cde8271732.tar.xz noscript-31b2f5bbd254789c9dddf272bc8fb4cde8271732.zip |
Fixed regression breaking meta refreshes with relative URLs.
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; } |