Fixed bypass of redirect to original not working in chromium https://github.com/libredirect/browser_extension/issues/1001
This commit is contained in:
parent
be15b9868d
commit
ee1cb15796
@ -53,6 +53,7 @@ browser.webRequest.onBeforeRequest.addListener(
|
|||||||
let documentUrl
|
let documentUrl
|
||||||
try {
|
try {
|
||||||
if (details.originUrl) originUrl = new URL(details.originUrl)
|
if (details.originUrl) originUrl = new URL(details.originUrl)
|
||||||
|
else if (details.initiator) originUrl = new URL(details.initiator)
|
||||||
if (details.documentUrl) documentUrl = new URL(details.documentUrl)
|
if (details.documentUrl) documentUrl = new URL(details.documentUrl)
|
||||||
} catch {
|
} catch {
|
||||||
return null
|
return null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user