Update embed.html.erb

Small fix
This commit is contained in:
Christoph Holtermann 2017-10-30 23:31:31 +01:00 committed by Sam
parent 2244f19ff9
commit 5914a3db20

View File

@ -39,8 +39,8 @@
window.onload = function() {
var state = "loading";
if (document.querySelectorAll("a.replies").length > 0) {
var state = "loaded";
if (document.querySelectorAll("span.replies").length > 0) {
state = "loaded";
}
// Send a post message with our loaded height and state
postUp({type: 'discourse-resize', height: document['body'].offsetHeight, state: state});