Add navigator.languages fallback for ios 9
This commit is contained in:
parent
6eeca8b5d1
commit
a49b73cd01
@ -84,7 +84,7 @@ const captions = {
|
|||||||
// * toggled: The real captions state
|
// * toggled: The real captions state
|
||||||
|
|
||||||
const languages = dedupe(
|
const languages = dedupe(
|
||||||
Array.from(navigator.languages || navigator.userLanguage).map(language => language.split('-')[0]),
|
Array.from(navigator.languages || navigator.language || navigator.userLanguage).map(language => language.split('-')[0]),
|
||||||
);
|
);
|
||||||
|
|
||||||
let language = (this.storage.get('language') || this.config.captions.language || 'auto').toLowerCase();
|
let language = (this.storage.get('language') || this.config.captions.language || 'auto').toLowerCase();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user