I'm trying to use this component with Golden-Layout, but was running into an error where contentWindow was not yet set when the vue-friendly-iframe component was mounted.
In setIframeUrl function, I was able to add...
if (this.iframeEl.contentWindow === null) {
setTimeout(this.setIframeUrl, 10)
return
}
...which seems to get it to load, but this seems like a hack (or maybe it's not). Any thoughts on how to do this more gracefully?
I'm trying to use this component with Golden-Layout, but was running into an error where contentWindow was not yet set when the
vue-friendly-iframe
component was mounted.In
setIframeUrl
function, I was able to add......which seems to get it to load, but this seems like a hack (or maybe it's not). Any thoughts on how to do this more gracefully?