add immediate timeout for embed postMessage

main
Mike Fix 5 years ago
parent 87b67230e7
commit 875f1782d6

@ -78,6 +78,8 @@ class Embed extends React.Component {
ref = React.createRef() ref = React.createRef()
postMessage = () => { postMessage = () => {
setTimeout(
() =>
getParent(window).postMessage( getParent(window).postMessage(
JSON.stringify({ JSON.stringify({
// Used by embed provider // Used by embed provider
@ -86,6 +88,8 @@ class Embed extends React.Component {
height: this.ref.current.offsetHeight height: this.ref.current.offsetHeight
}), }),
'*' '*'
),
0
) )
} }

Loading…
Cancel
Save