Explorar el Código

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

master
saturn hace 5 años
padre
commit
0b3b0a2c58
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      src/contentScript.js

+ 2
- 2
src/contentScript.js Ver fichero

@@ -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});
}

/******************/

Cargando…
Cancelar
Guardar