Fixed an issue where reApplyPeriodically could go crazy.

This commit is contained in:
Quentin Decaunes 2019-03-01 17:24:39 +01:00
parent a8897fba00
commit 8ee6fe07cc

View File

@ -240,6 +240,7 @@ function displayVersion() {
* @param {number} seconds Interval in seconds between each apply.
*/
function reApplyPeriodically(seconds) {
seconds = parseInt(seconds) >= 0 ? parseInt(seconds) : 0;
appendLog(`reApplyPeriodically(): seconds = ${seconds}`);
appendLog(`reApplyPeriodically(): document.reapplyLoop = ${document.reapplyLoop}`);
clearInterval(document.reapplyLoop);