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;
|
let urlObj;
|
||||||
if (url) {
|
if (url) {
|
||||||
try {
|
try {
|
||||||
urlObj = new URL(url.replace(/^(['"]?)(.+?)\1$/, '$2'));
|
urlObj = new URL(url.replace(/^(['"]?)(.+?)\1$/, '$2'), document.URL);
|
||||||
if (!/^https?:/.test(urlObj.protocol)) {
|
if (!/^https?:/.test(urlObj.protocol)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue