mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
added null check for moduleWrapper
(fixes race condition if element is updated)
This commit is contained in:
parent
caf56671dc
commit
853085e755
@ -203,6 +203,7 @@ var MM = (function() {
|
||||
*/
|
||||
var updateModuleContent = function(module, newHeader, newContent) {
|
||||
var moduleWrapper = document.getElementById(module.identifier);
|
||||
if (moduleWrapper === null) return;
|
||||
var headerWrapper = moduleWrapper.getElementsByClassName("module-header");
|
||||
var contentWrapper = moduleWrapper.getElementsByClassName("module-content");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user