diff --git a/MMM-pages.js b/MMM-pages.js index f30d7e7..9172699 100644 --- a/MMM-pages.js +++ b/MMM-pages.js @@ -155,12 +155,16 @@ Module.register('MMM-pages', { )); // Shows all modules meant to be on the current page, after a small delay. - setTimeout(() => MM.getModules() - .withClass(self.config.modules[self.curPage]) - .enumerate(module => module.show( - self.config.animationTime / 2, - { lockString: self.identifier }, - )), this.config.animationTime / 2); + setTimeout(() => { + MM.getModules() + .withClass(self.config.modules[self.curPage]) + .enumerate((module) => { + module.show( + self.config.animationTime / 2, + { lockString: self.identifier } + ); + }); + }, this.config.animationTime / 2); }, /**