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

Fix IE10 split error #895

Merged
merged 2 commits into from
Apr 14, 2018
Merged

Fix IE10 split error #895

merged 2 commits into from
Apr 14, 2018

Conversation

nicolasthy
Copy link
Contributor

Link to related issue (if applicable)

#893

Sumary of proposed changes

On IE10, Plyr throws the error Unable to get property 'split' of undefined or null reference. This fixes the case when window.navigator.language is null and can't use the split() function.

Task list

On IE10, Plyr throws the error `Unable to get property 'split' of undefined or null reference`. This fixes the case when `window.navigator.language` is null and can't use the `split()` function.
@sampotts
Copy link
Owner

I think rather than default to english we can get navigator.userLanguage as that's the IE equivalent. I'll merge and update though.

@sampotts sampotts merged commit e138e6d into sampotts:master Apr 14, 2018
filips123 pushed a commit to filips123/plyr that referenced this pull request Nov 22, 2018
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.

None yet

2 participants