Add a check for google.com for bangs.

This commit is contained in:
Bauke 2022-12-05 14:39:14 +01:00
parent 6630eff27f
commit fe06822b24
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,8 @@ browser.runtime.onInstalled.addListener(async () => {
browser.webNavigation.onBeforeNavigate.addListener(async (details) => {
const detailsUrl = new URL(details.url);
if (detailsUrl.host !== 'duckduckgo.com') {
const supportedHosts = ['duckduckgo.com', 'google.com'];
if (supportedHosts.includes(detailsUrl.host)) {
return;
}