Idiot. 🤦

This commit is contained in:
Bauke 2022-12-09 17:47:55 +01:00
parent 2e579f350d
commit 2727eb51b7
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 2 additions and 2 deletions

View File

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