From c39f60409d0713be3e6fe408213958aa1b9d73ae Mon Sep 17 00:00:00 2001 From: Edward Shen Date: Fri, 6 Nov 2020 10:27:17 -0500 Subject: [PATCH] Suppress warning on changePageBy if fallback is valid. --- MMM-pages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MMM-pages.js b/MMM-pages.js index 1960329..afdc3fe 100644 --- a/MMM-pages.js +++ b/MMM-pages.js @@ -149,7 +149,7 @@ Module.register('MMM-pages', { * numbers. */ changePageBy: function (amt, fallback) { - if (typeof amt !== 'number') { + if (typeof amt !== 'number' && typeof fallback === 'undefined') { Log.warn(`[Pages]: ${amt} is not a number!`); }