Browse Source

Added timeouts to requestIdleCallbacks to deal with sites that run JS continuously

master
saturn 5 years ago
parent
commit
0b3b0a2c58
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/contentScript.js

+ 2
- 2
src/contentScript.js View File

@@ -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…
Cancel
Save