Use camel case

This commit is contained in:
Kristjan ESPERANTO 2024-09-13 21:15:52 +02:00
parent bf1f866b52
commit 51af1f6632

View file

@ -247,11 +247,11 @@ Module.register('MMM-pages', {
clearTimeout(this.delayTimer); clearTimeout(this.delayTimer);
this.delayTimer=null this.delayTimer=null
} }
let rotation_timeout=this.config.rotationTime let rotationTimeout=this.config.rotationTime
if(this.config.pageTimeout.length){ if(this.config.pageTimeout.length){
for(let pageInfo of this.config.pageTimeout){ for(let pageInfo of this.config.pageTimeout){
if((pageInfo.pageNumber) -1 == this.curPage){ if((pageInfo.pageNumber) -1 == this.curPage){
rotation_timeout= pageInfo.timeout rotationTimeout= pageInfo.timeout
break; break;
} }
} }
@ -264,7 +264,7 @@ Module.register('MMM-pages', {
// message, so we need to trigger it for ourselves. // message, so we need to trigger it for ourselves.
self.sendNotification('PAGE_INCREMENT'); self.sendNotification('PAGE_INCREMENT');
self.notificationReceived('PAGE_INCREMENT'); self.notificationReceived('PAGE_INCREMENT');
}, rotation_timeout); }, rotationTimeout);
}, delay, this); }, delay, this);
} else if (this.config.rotationHomePage > 0) { } else if (this.config.rotationHomePage > 0) {
// This timer is the auto rotate function. // This timer is the auto rotate function.
@ -277,11 +277,11 @@ Module.register('MMM-pages', {
clearTimeout(this.delayTimer); clearTimeout(this.delayTimer);
this.delayTimer=null this.delayTimer=null
} }
let rotation_timeout=this.config.rotationHomePage let rotationTimeout=this.config.rotationHomePage
if(this.config.pageTimeout.length){ if(this.config.pageTimeout.length){
for(let pageInfo of this.config.pageTimeout){ for(let pageInfo of this.config.pageTimeout){
if((pageInfo.pagenumber) -1 == this.curPage){ if((pageInfo.pagenumber) -1 == this.curPage){
rotation_timeout= pageInfo.timeout rotationTimeout= pageInfo.timeout
break; break;
} }
} }
@ -295,7 +295,7 @@ Module.register('MMM-pages', {
// message, so we need to trigger it for ourselves. // message, so we need to trigger it for ourselves.
self.sendNotification('PAGE_CHANGED', 0); self.sendNotification('PAGE_CHANGED', 0);
self.notificationReceived('PAGE_CHANGED', self.config.homePage); self.notificationReceived('PAGE_CHANGED', self.config.homePage);
}, rotation_timeout); }, rotationTimeout);
}, delay); }, delay);
} }
}, },