-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[IE10] Unable to get property 'split' of undefined or null reference #893
Comments
Looks solid. I don't have any IE10 testing setup any longer, but MDN confirms it. Maybe you could make this a PR? |
I don't have access to contributions, had the fix ready but couldn't push on a new branch 😅 |
Only maintainers can create new branches. To create a PR as a non-maintainer you fork the repo, push your changes to a new branch and press "New pull request" from your branches list next to the branch you want to PR. You can also just browse to the correct file and make the changes in the github text editor, which will fork Plyr and create a PR for you, but this way is probably best to only use for documentation changes since you can't test before. |
Oh thank you ! I'm used to contribute to repositories in which I have permission to push on new branches. |
I did some more testing, seems like // Captions settings
captions: {
active: false,
language: window.navigator.language ? window.navigator.language.split('-')[0] : 'en'
}, |
I've merged the PR but will fallback to language: (navigator.language || navigator.userLanguage).split('-')[0] |
This should be resolved in |
Expected behaviour
Have Plyr to work on IE10
Actual behaviour
It throws an error in the console
Unable to get property 'split' of undefined or null reference
Environment
Steps to reproduce
Solution
The error comes from the
defaults.js
file wherewindow.navigator.language
is undefined.I found a solution that should do the work:
The text was updated successfully, but these errors were encountered: