From 1ada39f226cc81d88eb75c617df751a8cdfa1c14 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Mon, 17 Jan 2022 19:37:29 +0300 Subject: [PATCH] Update app.js Fixes #402 --- .gh-pages/app.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gh-pages/app.js b/.gh-pages/app.js index 89bb20e0..73cbd1fb 100644 --- a/.gh-pages/app.js +++ b/.gh-pages/app.js @@ -21,6 +21,11 @@ document.addEventListener('alpine:init', () => { let items = {} for (let channel of channels) { if (!items[channel.country]) { + if (!countries[channel.country]) { + console.log('Warning: Wrong country code', channel) + continue + } + const country = countries[channel.country] items[channel.country] = {