diff --git a/isso/js/embed.js b/isso/js/embed.js index 364bd20..4999363 100644 --- a/isso/js/embed.js +++ b/isso/js/embed.js @@ -11,6 +11,10 @@ require(["ready", "app/api", "app/isso", "app/count", "app/dom", "app/markup"], count(); + if ($("#isso-thread") === null) { + return console.log("abort, #isso-thread is missing"); + } + $("#isso-thread").append($.new('h4')); $("#isso-thread").append(new isso.Postbox(null)); $("#isso-thread").append('
');