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) => {
|
browser.webNavigation.onBeforeNavigate.addListener(async (details) => {
|
||||||
const detailsUrl = new URL(details.url);
|
const detailsUrl = new URL(details.url);
|
||||||
const supportedHosts = ['duckduckgo.com', 'google.com'];
|
const supportedHosts = ['duckduckgo.com', 'google.com', 'www.google.com'];
|
||||||
if (supportedHosts.includes(detailsUrl.host)) {
|
if (!supportedHosts.includes(detailsUrl.host)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue