diff --git a/app/views/layouts/embed.html.erb b/app/views/layouts/embed.html.erb
index 5968b85f0..31c44425a 100644
--- a/app/views/layouts/embed.html.erb
+++ b/app/views/layouts/embed.html.erb
@@ -31,10 +31,18 @@
// Send a post message with our loaded height
postUp({type: 'discourse-resize', height: document['body'].offsetHeight});
- var postLinks = document.querySelectorAll("a[data-link-to-post]");
- for (var i=0; i
<%= yield %>