diff --git a/src/pages/background/background.js b/src/pages/background/background.js index 4b46ea89..49bae0bf 100644 --- a/src/pages/background/background.js +++ b/src/pages/background/background.js @@ -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