[IE10] Unable to get property 'split' of undefined or null reference
See original GitHub issueExpected 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
- Browser: Internet Explorer
- Version: 10
- Operating System: Windows
- Version: 10
Steps to reproduce
- Run any website with plyr on IE10
Solution
The error comes from the defaults.js
file where window.navigator.language
is undefined.
I found a solution that should do the work:
...
// Captions settings
captions: {
active: false,
language: window.navigator.language && window.navigator.language.split('-')[0],
},
...
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Unable to get property 'split' of undefined or null reference ...
JavaScript runtime error: Unable to get property 'split' of undefined or null reference. This might be the case like the targeted element with...
Read more >What does “Unable to get property 'split' of undefined or null ...
“Unable to get property 'split' of undefined” means that you're trying to reference an array that doesn't exist. You can use a ternary...
Read more >unable to get property errorcode of undefined or null referance ...
I have reset IE 10 two times and still get this: Message from website: TypeError: Unable to get property 'errorCode' of undefined or...
Read more >Javascript runtime error unable to get property options of undefined ...
Unable to get property 'indexOf' of undefined or null reference You have tried ... reference (reported on systems with Windows 7 and Internet...
Read more >Unable to get property 'documentElement' of undefined or null ...
On Internet Explorer 10, a JavaScript error occurs when you click on the calendar folder in Workarea: Unable to get property...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh thank you ! I’m used to contribute to repositories in which I have permission to push on new branches.
This should be resolved in
v3.2.0
. Thanks for your help 👍