Added timeouts to requestIdleCallbacks to deal with sites that run JS continuously
This commit is contained in:
parent
36951432cf
commit
0b3b0a2c58
@ -185,7 +185,7 @@ function startConstantVigilance() {
|
||||
window.requestIdleCallback(() => {
|
||||
killSticky();
|
||||
starter();
|
||||
});
|
||||
}, {timeout: 1000});
|
||||
});
|
||||
|
||||
console.log("Commencing vigilance for stickies!");
|
||||
@ -202,7 +202,7 @@ function beginKillingStickies() {
|
||||
window.requestIdleCallback(() => {
|
||||
killSticky();
|
||||
startConstantVigilance();
|
||||
});
|
||||
}, {timeout: 1000});
|
||||
}
|
||||
|
||||
/******************/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user