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