diff --git a/frontend/js/commento.js b/frontend/js/commento.js index 8fe9ca4..8b54ed4 100644 --- a/frontend/js/commento.js +++ b/frontend/js/commento.js @@ -1561,6 +1561,11 @@ global.main = function(callback) { root = $(ID_ROOT); + if (root === null) { + console.log("[commento] error: no root element with ID '" + ID_ROOT + "' found"); + return; + } + classAdd(root, "root"); loginBoxCreate();