mirror of
https://gitlab.com/commento/commento.git
synced 2025-06-29 22:56:37 -04:00
commento.js: warn user if no div with id=commento
Closes https://gitlab.com/commento/commento/issues/42
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user