Skip to content

Commit

Permalink
silly linting
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmurdoch committed Jun 13, 2024
1 parent 22790f7 commit 6bd2514
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions app/scripts/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,15 +262,13 @@ function maybeDetectPhishing(theController) {
redirectTab(details.tabId, redirectHref);
// don't let the sub_frame load at all
return { cancel: true };
} else {
// redirect the whole tab, even if it's a sub_frame request
return { redirectUrl: redirectHref };
}
} else {
// redirect the whole tab, even if it's a sub_frame request
redirectTab(details.tabId, redirectHref);
return {};
return { redirectUrl: redirectHref };
}
// redirect the whole tab, even if it's a sub_frame request
redirectTab(details.tabId, redirectHref);
return {};
},
{ types: ['main_frame', 'sub_frame'], urls: ['http://*/*', 'https://*/*'] },
blocking ? ['blocking'] : [],
Expand Down

0 comments on commit 6bd2514

Please sign in to comment.