From dc44bfec00771002b1a77842a5173e266006a6ce Mon Sep 17 00:00:00 2001 From: Edward Shen Date: Thu, 8 Aug 2019 13:14:01 -0400 Subject: [PATCH] lint --- MMM-pages.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MMM-pages.js b/MMM-pages.js index a5b7dc0..fe2aa46 100644 --- a/MMM-pages.js +++ b/MMM-pages.js @@ -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