Read the statement by Michael Teeuw here.
Module suspend not being called
-
I have two modules, which are executing fine…
I want to add support for suspend and resume, to be used with the Hello-Lucy extension to hide modules.
I added the functions to my module.js, but suspend is never called…
the hello-lucy mod to MMM-Voice (module.js) does
MM.getModules().enumerate((module) => { module.hide(1000);so my modules should be found and notified…
config for my modules is
{ module: "ImageScheduler", }, { module: "ImageService", },resume is working… suspend is not…
my suspend and resume functions
suspend: function(){ Log.log("image service in suspend"); self.sendSocketNotification("suspend",null) }, resume: function(){ Log.log("image service in resume"); self.sendSocketNotification("resume",null) }, -
ok, this is a bug/limitation… the js/main.js.hideModule() method doesn’t call the callback if there is no dom content…, and there is no dom content if no module position is defined… (per UpdateDom not working)
my module has no dom content, but I need the suspend notification
i have opened issue 1308
-
this fix is now added to the develop branch, and will be merged to master at some time.
Thanks Mitch
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login