From 8ee6fe07cca5662745e020a58a4f9e7489f85bc2 Mon Sep 17 00:00:00 2001 From: Quentin Decaunes Date: Fri, 1 Mar 2019 17:24:39 +0100 Subject: [PATCH] Fixed an issue where reApplyPeriodically could go crazy. --- js/methods.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/methods.js b/js/methods.js index 7cc0c70..09afeb6 100644 --- a/js/methods.js +++ b/js/methods.js @@ -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);