fix indentation
This commit is contained in:
parent
a0af15d525
commit
bed26ea0b3
|
@ -37,15 +37,15 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
window.onload = function() {
|
window.onload = function() {
|
||||||
// get state info from data attribute
|
// get state info from data attribute
|
||||||
var header = document.querySelector('header');
|
var header = document.querySelector('header');
|
||||||
var state = 'unknown';
|
var state = 'unknown';
|
||||||
if (header) {
|
if (header) {
|
||||||
state = header.getAttribute('data-embed-state');
|
state = header.getAttribute('data-embed-state');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send a post message with our loaded height and state
|
// Send a post message with our loaded height and state
|
||||||
postUp({type: 'discourse-resize', height: document['body'].offsetHeight, state: state});
|
postUp({type: 'discourse-resize', height: document['body'].offsetHeight, state: state});
|
||||||
|
|
||||||
var postLinks = document.querySelectorAll("a[data-link-to-post]"),
|
var postLinks = document.querySelectorAll("a[data-link-to-post]"),
|
||||||
|
|
Loading…
Reference in New Issue