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); },