Add a check for google.com for bangs.
This commit is contained in:
parent
6630eff27f
commit
fe06822b24
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue