Add country code in link analyzer

This commit is contained in:
RemixDev 2022-05-28 15:33:47 +02:00
parent 41588015ab
commit c6912a395c
1 changed files with 2 additions and 1 deletions

View File

@ -142,7 +142,7 @@
<template v-if="countries.length">
<h3>{{ $t('linkAnalyzer.countries') }}</h3>
<p v-for="(country, i) in countries" :key="i">{{ country[0] }} - {{ country[1] }}</p>
<p v-for="(country, i) in countries" :key="i">{{ country[0] }} - [{{ country[2] }}] {{ country[1] }}</p>
</template>
<template v-else-if="type === 'track'">
<h3>{{ $t('linkAnalyzer.noCountries') }}</h3>
@ -231,6 +231,7 @@ export default {
const chars = [...cc].map(c => c.charCodeAt() + 127397)
temp.push(String.fromCodePoint(...chars))
temp.push(COUNTRIES[cc])
temp.push(cc.toUpperCase())
this.countries.push(temp)
this.available_countries.push(cc.toLowerCase())
})