Fixed regression breaking meta refreshes with relative URLs.
This commit is contained in:
parent
859cb65d82
commit
31b2f5bbd2
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue