Read the statement by Michael Teeuw here.
Memory effect with MM2
-
@sdetweil Tried that before, somehow works now though, thanks!
Only problem I have now is that the module displays two line of text right across the rest of my modules:MMM-Anti-Screen-Burn-In
module_8_MMM-Anti-Screen-Burn-InI didn’t add any text to the .js or .css file tho and I can’t figure out how to get rid of it.
-
@wladek oops… if no getDom(), MM puts out some content
replace the js file with this
Module.register("MMM-Anti-Screen-Burn-In", { start: function(){ setInterval(() => { document.querySelector("body").classList.toggle("MMM-Anti-Screen-Burn-In"); }, 6 * 60 * 60 * 1000); // every 6 hours }, getStyles: function(){ return ["MMM-Anti-Screen-Burn-In.css"]; }, getDom: function(){ var wrapper = document.createElement("div"); return wrapper } })
-
@sdetweil That has fixed it, thank you so much!
-
how do I then “activate” it?
Speed Test Scrabble Word Finder Solitaire -
@toucherts every 6 hours it toggles the class used to present the screen.
I just made a little module package on github
https://github.com/sdetweil/MMM-Anti-Screen-Burn-In -
@sdetweil said in Memory effect with MM2:
@toucherts every 6 hours it toggles the class used to present the screen.
I just made a little module package on github
https://github.com/sdetweil/MMM-Anti-Screen-Burn-InOK GOOD