mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 04:02:12 +00:00
Dont updateDOM when the module is not displayed
This commit is contained in:
parent
911675f995
commit
88c80973f1
@ -547,6 +547,11 @@ var MM = (function () {
|
|||||||
return;
|
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.
|
// Further implementation is done in the private method.
|
||||||
updateDom(module, speed);
|
updateDom(module, speed);
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user