mirror of
https://github.com/edward-shen/MMM-pages.git
synced 2024-11-22 02:04:29 -08:00
Suppress warning on changePageBy if fallback is valid.
This commit is contained in:
parent
6e025371bd
commit
c39f60409d
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ Module.register('MMM-pages', {
|
||||||
* numbers.
|
* numbers.
|
||||||
*/
|
*/
|
||||||
changePageBy: function (amt, fallback) {
|
changePageBy: function (amt, fallback) {
|
||||||
if (typeof amt !== 'number') {
|
if (typeof amt !== 'number' && typeof fallback === 'undefined') {
|
||||||
Log.warn(`[Pages]: ${amt} is not a number!`);
|
Log.warn(`[Pages]: ${amt} is not a number!`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue