Added dfault fallback to the geoLocation
This commit is contained in:
parent
bf2737b947
commit
7dff578422
|
@ -652,7 +652,10 @@ export default Vue.extend({
|
||||||
|
|
||||||
this.currentLocale = this.$i18n.locale
|
this.currentLocale = this.$i18n.locale
|
||||||
this.currentGeoLocation = this.$i18n.geoLocation
|
this.currentGeoLocation = this.$i18n.geoLocation
|
||||||
this.updateGeoLocationNames(this.currentLocale)
|
if (this.currentGeoLocation === undefined) {
|
||||||
|
this.updateGeoLocationNames(this.currentLocale)
|
||||||
|
this.currentGeoLocation = 'us'
|
||||||
|
}
|
||||||
},
|
},
|
||||||
beforeDestroy: function () {
|
beforeDestroy: function () {
|
||||||
if (this.invidiousInstance === '') {
|
if (this.invidiousInstance === '') {
|
||||||
|
@ -697,7 +700,7 @@ export default Vue.extend({
|
||||||
}
|
}
|
||||||
const countries = JSON.parse(fileData).map((entry) => { return { id: entry.id, name: entry.name, code: entry.alpha2 } })
|
const countries = JSON.parse(fileData).map((entry) => { return { id: entry.id, name: entry.name, code: entry.alpha2 } })
|
||||||
countries.sort((a, b) => { return a.id - b.id })
|
countries.sort((a, b) => { return a.id - b.id })
|
||||||
this.geoLocationArray = countries
|
this.geoLocationArray = countriess
|
||||||
},
|
},
|
||||||
|
|
||||||
...mapActions([
|
...mapActions([
|
||||||
|
|
Loading…
Reference in New Issue