mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 17:15:32 +08:00
20 lines
450 B
Plaintext
20 lines
450 B
Plaintext
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<%= stylesheet_link_tag 'embed' %>
|
|
|
|
<script>
|
|
(function() {
|
|
window.onload = function() {
|
|
if (parent) {
|
|
// Send a post message with our loaded height
|
|
parent.postMessage({type: 'discourse-resize', height: document['body'].offsetHeight}, '<%= request.referer %>');
|
|
}
|
|
}
|
|
})();
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<%= yield %>
|
|
</body>
|
|
</html> |