mirror of
https://github.com/edward-shen/MMM-pages.git
synced 2024-11-22 02:04:29 -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.
|
* numbers.
|
||||||
*/
|
*/
|
||||||
changePageBy: function(amt, fallback) {
|
changePageBy: function(amt, fallback) {
|
||||||
if (typeof payload !== 'number') {
|
if (typeof amt !== 'number') {
|
||||||
Log.warn(`[Pages]: ${amt} is not a number!`);
|
Log.warn(`[Pages]: ${amt} is not a number!`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue