fix indentation

This commit is contained in:
Christoph Holtermann 2018-03-10 16:30:50 +01:00 committed by Sam
parent a0af15d525
commit bed26ea0b3
1 changed files with 8 additions and 8 deletions

View File

@ -37,15 +37,15 @@
}
}
window.onload = function() {
// get state info from data attribute
var header = document.querySelector('header');
var state = 'unknown';
if (header) {
state = header.getAttribute('data-embed-state');
}
window.onload = function() {
// get state info from data attribute
var header = document.querySelector('header');
var state = 'unknown';
if (header) {
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});
var postLinks = document.querySelectorAll("a[data-link-to-post]"),