Fix IE10 split error
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.
This commit is contained in:
		| @ -115,7 +115,7 @@ const defaults = { | |||||||
|     // Captions settings |     // Captions settings | ||||||
|     captions: { |     captions: { | ||||||
|         active: false, |         active: false, | ||||||
|         language: window.navigator.language.split('-')[0], |         language: window.navigator.language && window.navigator.language.split('-')[0], | ||||||
|     }, |     }, | ||||||
|  |  | ||||||
|     // Fullscreen settings |     // Fullscreen settings | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user