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

SCRIPT5007: Unable to get property '0' of undefined or null reference #28

Closed
gitgrimbo opened this issue Dec 16, 2018 · 0 comments
Closed

Comments

@gitgrimbo
Copy link
Contributor

If (navigator.languages || navigator.language || navigator.userLanguage) is truthy, navigator.languages[0] will fail in IE 11 because navigator.languages is undefined.

}else if(typeof navigator !== 'undefined' && (navigator.languages || navigator.language || navigator.userLanguage)){
	language = (navigator.languages[0] || navigator.language || navigator.userLanguage || 'root').toLowerCase();
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