This commit is contained in:
Edward Shen 2018-07-26 14:11:18 -04:00
parent edc1e08e65
commit 1ba0e490b7
No known key found for this signature in database
GPG key ID: 4E887A42793D0433
2 changed files with 10 additions and 11 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
node_modules

View file

@ -114,16 +114,14 @@ Module.register('MMM-pages', {
}); });
// Shows the next page's elements // Shows the next page's elements
setTimeout(() => { setTimeout(() =>
MM.getModules() MM.getModules()
.withClass(self.config.modules[self.curPage]) .withClass(self.config.modules[self.curPage])
.enumerate((module) => { .enumerate(module =>
module.show( module.show(
self.config.animationTime / 2, self.config.animationTime / 2,
{ lockString: self.identifier } { lockString: self.identifier },
); )), this.config.animationTime / 2);
});
}, this.config.animationTime / 2);
if (manuallyCalled && this.config.rotationTime > 0) { if (manuallyCalled && this.config.rotationTime > 0) {
Log.log('Manually updated page! setting delay before resuming timer!'); Log.log('Manually updated page! setting delay before resuming timer!');