mirror of
https://github.com/edward-shen/MMM-pages.git
synced 2024-12-22 00:35:09 -08:00
Apparently the issue in #11 is still present in the newest versions of MM.
I've implemented the fix in #11 present by Ax-LED, so hopefully this is fixed now. Co-authored-by: Ax-LED <37046881+Ax-LED@users.noreply.github.com>
This commit is contained in:
parent
d2323aa116
commit
0bb003d3d8
1 changed files with 10 additions and 6 deletions
16
MMM-pages.js
16
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);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue