Fixed regression breaking meta refreshes with relative URLs.

This commit is contained in:
hackademix 2018-07-16 23:45:10 +02:00
parent 859cb65d82
commit 31b2f5bbd2
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}