mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 09:52:06 +03:00
3d43964bcd
no issue - switched to listening to Portal's `message` events that now include a height - removes need to reach into Portal preview iframe contents which is blocked by browser security when working cross-origin
11 lines
334 B
Handlebars
11 lines
334 B
Handlebars
<iframe
|
|
class="site-frame {{if this.isInvisible "invisible"}}"
|
|
src={{this.srcUrl}}
|
|
frameborder="0"
|
|
allowtransparency="true"
|
|
{{did-insert (optional @onInserted)}}
|
|
{{did-insert this.attachMessageListener}}
|
|
{{did-update this.resetSrcAttribute @guid}}
|
|
{{on "load" this.onLoad}}
|
|
...attributes
|
|
></iframe> |