Update app.js

Fixes #402
This commit is contained in:
Aleksandr Statciuk 2022-01-17 19:37:29 +03:00
parent 7132b069b6
commit 1ada39f226

View file

@ -21,6 +21,11 @@ document.addEventListener('alpine:init', () => {
let items = {} let items = {}
for (let channel of channels) { for (let channel of channels) {
if (!items[channel.country]) { if (!items[channel.country]) {
if (!countries[channel.country]) {
console.log('Warning: Wrong country code', channel)
continue
}
const country = countries[channel.country] const country = countries[channel.country]
items[channel.country] = { items[channel.country] = {