This commit is contained in:
Edward Shen 2019-08-08 13:14:01 -04:00
parent 9684949a1d
commit dc44bfec00
Signed by: edward
GPG key ID: F350507060ED6C90

View file

@ -44,7 +44,7 @@ Module.register('MMM-pages', {
// Compatibility
if (this.config.excludes.length) {
Log.warn(`[Pages]: The config option "excludes" is deprecated. Please use "fixed" instead.`);
Log.warn('[Pages]: The config option "excludes" is deprecated. Please use "fixed" instead.');
this.config.fixed = this.config.excludes;
}
@ -113,7 +113,7 @@ Module.register('MMM-pages', {
Log.warn(`[Pages]: ${amt} is not a number!`);
}
if (typeof amt === 'number' && !isNaN(amt)) {
if (typeof amt === 'number' && !Number.isNaN(amt)) {
this.curPage = this.mod(
this.curPage + amt,
this.config.modules.length