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

Don't use window.location when not defined. #380

Closed
wants to merge 2 commits into from

Conversation

anuraaga
Copy link

In server-side-rendering scenarios, window.location may be undefined, causing this code to crash. As this is only meant as an best-effort override, I think it makes sense to ensure this override only happens when window.location is actually present.

@VadimKorobka
Copy link
Contributor

Dublicate: #377
And it's wrong solution.

@supasate
Copy link
Owner

Closing as duplicated. Thanks for your contribution anyway @anuraaga !.

@supasate supasate closed this Nov 25, 2019
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.

3 participants