From 51af1f6632eea00c81db1967c2793c3c3e2a1711 Mon Sep 17 00:00:00 2001 From: Kristjan ESPERANTO <35647502+KristjanESPERANTO@users.noreply.github.com> Date: Fri, 13 Sep 2024 21:15:52 +0200 Subject: [PATCH] Use camel case --- MMM-pages.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/MMM-pages.js b/MMM-pages.js index 7642e16..0c3cb2e 100644 --- a/MMM-pages.js +++ b/MMM-pages.js @@ -247,11 +247,11 @@ Module.register('MMM-pages', { clearTimeout(this.delayTimer); this.delayTimer=null } - let rotation_timeout=this.config.rotationTime + let rotationTimeout=this.config.rotationTime if(this.config.pageTimeout.length){ for(let pageInfo of this.config.pageTimeout){ if((pageInfo.pageNumber) -1 == this.curPage){ - rotation_timeout= pageInfo.timeout + rotationTimeout= pageInfo.timeout break; } } @@ -264,7 +264,7 @@ Module.register('MMM-pages', { // message, so we need to trigger it for ourselves. self.sendNotification('PAGE_INCREMENT'); self.notificationReceived('PAGE_INCREMENT'); - }, rotation_timeout); + }, rotationTimeout); }, delay, this); } else if (this.config.rotationHomePage > 0) { // This timer is the auto rotate function. @@ -277,11 +277,11 @@ Module.register('MMM-pages', { clearTimeout(this.delayTimer); this.delayTimer=null } - let rotation_timeout=this.config.rotationHomePage + let rotationTimeout=this.config.rotationHomePage if(this.config.pageTimeout.length){ for(let pageInfo of this.config.pageTimeout){ if((pageInfo.pagenumber) -1 == this.curPage){ - rotation_timeout= pageInfo.timeout + rotationTimeout= pageInfo.timeout break; } } @@ -295,7 +295,7 @@ Module.register('MMM-pages', { // message, so we need to trigger it for ourselves. self.sendNotification('PAGE_CHANGED', 0); self.notificationReceived('PAGE_CHANGED', self.config.homePage); - }, rotation_timeout); + }, rotationTimeout); }, delay); } },