From 87f6b1eba107c60a2ea5f035227c2a62297a5d19 Mon Sep 17 00:00:00 2001 From: Edward Shen Date: Mon, 7 Sep 2020 16:02:21 -0400 Subject: [PATCH] also set current page during initialization --- MMM-pages.js | 1 + 1 file changed, 1 insertion(+) diff --git a/MMM-pages.js b/MMM-pages.js index 4c6527a..7a2c30a 100644 --- a/MMM-pages.js +++ b/MMM-pages.js @@ -99,6 +99,7 @@ Module.register('MMM-pages', { Log.log('[Pages]: received that all objects are created;' + 'will now hide things!'); this.sendNotification('MAX_PAGES_CHANGED', this.config.modules.length); + this.sendNotification('PAGE_CHANGED', this.curPage); this.animatePageChange(); this.resetTimerWithDelay(0); break;