question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[IE10] Unable to get property 'split' of undefined or null reference

See original GitHub issue

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

  • 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
nicolasthycommented, Apr 12, 2018

Oh thank you ! I’m used to contribute to repositories in which I have permission to push on new branches.

0reactions
sampottscommented, Apr 17, 2018

This should be resolved in v3.2.0 . Thanks for your help 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found