commento.js: warn user if no div with id=commento
Closes https://gitlab.com/commento/commento/issues/42
This commit is contained in:
parent
34e39edcda
commit
96589a2658
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user