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

Why is the polyfill wrapped to window.top instead of the actual window? #2

Open
redfellow opened this issue Jun 3, 2021 · 2 comments

Comments

@redfellow
Copy link

redfellow commented Jun 3, 2021

I'm asking because window.top in a scenario where the Polyfill is running in an iframe, that has it's top window located in another domain triggers a CORS error. If I modify it to bind to the current window, things work as expected.

@alexis89x
Copy link
Owner

alexis89x commented Jun 3, 2021 via email

@redfellow
Copy link
Author

Makes sense, and perhaps that functionality is important for some, but not others. Could be added in the readme :)

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

2 participants