mirror of
https://github.com/edward-shen/MMM-pages.git
synced 2024-11-22 02:04:29 -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
12
MMM-pages.js
12
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.
|
// Shows all modules meant to be on the current page, after a small delay.
|
||||||
setTimeout(() => MM.getModules()
|
setTimeout(() => {
|
||||||
|
MM.getModules()
|
||||||
.withClass(self.config.modules[self.curPage])
|
.withClass(self.config.modules[self.curPage])
|
||||||
.enumerate(module => module.show(
|
.enumerate((module) => {
|
||||||
|
module.show(
|
||||||
self.config.animationTime / 2,
|
self.config.animationTime / 2,
|
||||||
{ lockString: self.identifier },
|
{ lockString: self.identifier }
|
||||||
)), this.config.animationTime / 2);
|
);
|
||||||
|
});
|
||||||
|
}, this.config.animationTime / 2);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue