A platform for community discussion. Free, open, simple.
Update embed.html.erb
Christoph Holtermann2244f19ff92a
diff --git a/app/views/layouts/embed.html.erb b/app/views/layouts/embed.html.erbindex 59b87e46a0f..f17a2c5e9e3 100644--- a/app/views/layouts/embed.html.erb+++ b/app/views/layouts/embed.html.erb@@ -38,8 +38,12 @@}window.onload = function() {- // Send a post message with our loaded height- postUp({type: 'discourse-resize', height: document['body'].offsetHeight});+ var state = "loading";+ if (document.querySelectorAll("a.replies").length > 0) {+ var state = "loaded";+ }+ // Send a post message with our loaded height and state+ postUp({type: 'discourse-resize', height: document['body'].offsetHeight, state: state});var postLinks = document.querySelectorAll("a[data-link-to-post]"),i;