Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using with Golden Layout #21

Open
klongmitre opened this issue Jan 17, 2020 · 1 comment
Open

Using with Golden Layout #21

klongmitre opened this issue Jan 17, 2020 · 1 comment

Comments

@klongmitre
Copy link
Contributor

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?

@klongmitre
Copy link
Contributor Author

I initiated a pull request with the code that addresses this issue: #22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant