Idiot. 🤦
This commit is contained in:
parent
2e579f350d
commit
2727eb51b7
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue