Fixed navigator.language missing in IE9 causing the page not to load
This commit is contained in:
parent
df6f22ab91
commit
f79c6381b5
@ -39,7 +39,7 @@ Vue.use(VueI18n);
|
||||
Vue.use(VueRouter);
|
||||
|
||||
const i18n = new VueI18n({
|
||||
locale: navigator.language.split('-')[0],
|
||||
locale: navigator.language ? navigator.language.split('-')[0] : null,
|
||||
fallbackLocale: 'en',
|
||||
messages: messages
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user