Skip to content

ref: Access window.location instead of document.location #1180

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

Merged
merged 1 commit into from
Jan 10, 2018

Conversation

kamilogorek
Copy link
Contributor

@kamilogorek kamilogorek commented Dec 20, 2017

Fixes #1159 but with less code. window.location is always accessible if document.location is, but it's not true another way around, eg. in Service Workers

@kamilogorek kamilogorek requested a review from a team December 20, 2017 14:28
@kamilogorek kamilogorek changed the title ref: Access window.location first before trying document.location ref: Access window.location instead of document.location Dec 20, 2017
@kamilogorek kamilogorek merged commit b48b830 into master Jan 10, 2018
@kamilogorek kamilogorek deleted the location-source branch January 10, 2018 13:30
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

Successfully merging this pull request may close these issues.

2 participants