Fixed navigator.language missing in IE9 causing the page not to load

This commit is contained in:
Mark van Renswoude 2018-05-02 11:48:41 +02:00
parent df6f22ab91
commit f79c6381b5

View File

@ -39,7 +39,7 @@ Vue.use(VueI18n);
Vue.use(VueRouter); Vue.use(VueRouter);
const i18n = new VueI18n({ const i18n = new VueI18n({
locale: navigator.language.split('-')[0], locale: navigator.language ? navigator.language.split('-')[0] : null,
fallbackLocale: 'en', fallbackLocale: 'en',
messages: messages messages: messages
}); });