mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Update embed.html.erb
Small fix
This commit is contained in:
parent
2244f19ff9
commit
5914a3db20
@ -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});
|
||||
|
Loading…
Reference in New Issue
Block a user