mirror of
https://github.com/edward-shen/MMM-pages.git
synced 2024-11-22 02:04: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
|
// Compatibility
|
||||||
if (this.config.excludes.length) {
|
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;
|
this.config.fixed = this.config.excludes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ Module.register('MMM-pages', {
|
||||||
Log.warn(`[Pages]: ${amt} is not a number!`);
|
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 = this.mod(
|
||||||
this.curPage + amt,
|
this.curPage + amt,
|
||||||
this.config.modules.length
|
this.config.modules.length
|
||||||
|
|
Loading…
Reference in a new issue