Don't check redirects in subframes.

This commit is contained in:
Bauke 2022-11-02 12:16:39 +01:00
parent 089a27ab9d
commit 1fbe1efb90
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ browser.runtime.onInstalled.addListener(async () => {
});
browser.webNavigation.onBeforeNavigate.addListener(async (details) => {
if (!details.url.startsWith('http')) {
if (!details.url.startsWith('http') || details.frameId > 0) {
return;
}