diff --git a/CHANGELOG.md b/CHANGELOG.md index 239eb13d..11a8a76c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,7 +27,8 @@ _This release is scheduled to be released on 2021-04-01._ - Converted newsfeed module to use templates. - Update documentation and help screen about invalid config files. - Moving weather provider specific code and configuration into each provider and making hourly part of the interface. -- Bump electron to v11 +- Bump electron to v11. +- Dont update the DOM when a module is not displayed. ### Removed diff --git a/js/main.js b/js/main.js index b7138d99..6bdbbc3e 100644 --- a/js/main.js +++ b/js/main.js @@ -547,6 +547,11 @@ var MM = (function () { return; } + if (!module.data.position) { + Log.warn("module tries to update the DOM without being displayed."); + return; + } + // Further implementation is done in the private method. updateDom(module, speed); },