Skip to content

Commit

Permalink
Fixed bypass of redirect to original not working in chromium #1001
Browse files Browse the repository at this point in the history
  • Loading branch information
ManeraKai committed Nov 2, 2024
1 parent be15b98 commit ee1cb15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/background/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ browser.webRequest.onBeforeRequest.addListener(
let documentUrl
try {
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)
} catch {
return null
Expand Down

0 comments on commit ee1cb15

Please sign in to comment.