fix file name and register and hide/show

This commit is contained in:
sam detweiler 2023-12-14 10:05:27 -07:00
parent 2f5ac7666a
commit a67625905c

View file

@ -1,4 +1,4 @@
Module.register('MMM-pages', {
Module.register('MMM-Pages', {
// We require the older style of function declaration for compatibility
// reasons.
@ -218,13 +218,13 @@ Module.register('MMM-pages', {
MM.getModules()
.exceptWithClass(modulesToShow)
.enumerate(module => module.hide(animationTime, lockStringObj));
.enumerate(module => module.hide(animationTime,()=>{}, lockStringObj));
// Shows all modules meant to be on the current page, after a small delay.
setTimeout(() => {
MM.getModules()
.withClass(modulesToShow)
.enumerate(module => module.show(animationTime, lockStringObj));
.enumerate(module => module.show(animationTime, ()=>{}, lockStringObj));
}, animationTime);
},