add chrome url to exceptions
This commit is contained in:
parent
64b0c4951e
commit
db0f1df790
2
click.js
2
click.js
|
@ -1,7 +1,7 @@
|
||||||
var sndsrc;
|
var sndsrc;
|
||||||
var click = new Audio();
|
var click = new Audio();
|
||||||
chrome.webNavigation.onBeforeNavigate.addListener((details)=>{
|
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();
|
if (click.src) click.play();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user