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

Add "window" to access to the 'navigator' property #803

Merged
merged 2 commits into from
Jan 6, 2018

Conversation

bsvobodny
Copy link
Contributor

I don't kow the reason why but in my case I'm getting an error "navigator is not defined".
Adding "window" in front of it, resolves my problem.
As adding or not "window" should not affect the code, I assume that putting it should not be an issue for anyone but it will be appreciated by me ;)

bsvobodny and others added 2 commits October 18, 2017 14:15
I don't kow the reason why but in my case I'm getting an error "navigator is not defined".
Adding "window" in front of it, resolves my problem.
As adding or not "window" should not affect the code, I assume that putting it should not be an issue for anyone but it will be appreciated by me ;)
@Rycochet
Copy link
Collaborator

Which browser was this in?

@bsvobodny
Copy link
Contributor Author

I got this error when runnig tests with jest and Jasmine.
I know this is not usual ;)

@Rycochet
Copy link
Collaborator

Ah - looks like an issue with Jest - not a big one and don't think there's any problem there. If you can use a cache for var navigator = (window && window.navigator) || {}; above it, then it'd be safe, and I'd be happy pulling and doing a bugfix release.

@Rycochet Rycochet merged commit 319ddeb into julianshapiro:master Jan 6, 2018
Rycochet pushed a commit that referenced this pull request Aug 3, 2020
* Add "window" to access to the 'navigator' property

I don't kow the reason why but in my case I'm getting an error "navigator is not defined".
Adding "window" in front of it, resolves my problem.
As adding or not "window" should not affect the code, I assume that putting it should not be an issue for anyone but it will be appreciated by me ;)

* update min and ui.min files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants