mirror of
https://github.com/edward-shen/MMM-pages.git
synced 2024-11-21 17:54:29 -08:00
lint
This commit is contained in:
parent
9684949a1d
commit
dc44bfec00
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue