add chrome url to exceptions

This commit is contained in:
Wirlaburla 2024-10-11 14:23:36 -05:00
parent 64b0c4951e
commit db0f1df790

View File

@ -1,7 +1,7 @@
var sndsrc;
var click = new Audio();
chrome.webNavigation.onBeforeNavigate.addListener((details)=>{
if (!details.url.startsWith("moz-extension://") && !details.url.startsWith("about:")) {
if (!details.url.startsWith("moz-extension://") && !details.url.startsWith("about:") && !details.url.startsWith("chrome://")) {
if (click.src) click.play();
}
});