mirror of
https://github.com/edward-shen/MMM-pages.git
synced 2024-12-22 00:35:09 -08:00
fixed not a number check in changePageBy
This commit is contained in:
parent
0bb003d3d8
commit
67d142452d
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ Module.register('MMM-pages', {
|
|||
* numbers.
|
||||
*/
|
||||
changePageBy: function(amt, fallback) {
|
||||
if (typeof payload !== 'number') {
|
||||
if (typeof amt !== 'number') {
|
||||
Log.warn(`[Pages]: ${amt} is not a number!`);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue