Update update-codes.js
This commit is contained in:
1 parent
210a2d646f
commit
f2cd80044c
1 file changed
+4
-2
@@ -36,9 +36,11 @@ async function main() {
|
||||
file.write('.gh-pages/codes.json', JSON.stringify(sorted))
|
||||
|
||||
const _items = {}
|
||||
countries.forEach(country => {
|
||||
Object.values(countries).forEach(country => {
|
||||
_items[country.code] = {
|
||||
...country,
|
||||
flag: country.flag,
|
||||
name: country.name,
|
||||
code: country.code,
|
||||
expanded: false,
|
||||
channels: []
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user