commento.js: warn user if no div with id=commento

Closes https://gitlab.com/commento/commento/issues/42
This commit is contained in:
Adhityaa Chandrasekar 2018-12-28 11:59:02 -05:00
parent 34e39edcda
commit 96589a2658

View File

@ -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();