Dont updateDOM when the module is not displayed

This commit is contained in:
rejas 2021-02-05 22:40:05 +01:00
parent 911675f995
commit 88c80973f1

View File

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