From 9b2168466c3f6a8765a2b757dd24cf3374f976d8 Mon Sep 17 00:00:00 2001 From: TC pushbot 5 Date: Sat, 24 Feb 2024 14:04:33 +0800 Subject: [PATCH] Update access.html Fixed issue #103 --- src/web/components/access.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/web/components/access.html b/src/web/components/access.html index 3753e53..7386dce 100644 --- a/src/web/components/access.html +++ b/src/web/components/access.html @@ -766,7 +766,8 @@ function initWhitelistCountryList(){ $.get("/api/whitelist/list?type=country", function(data) { let bannedListHtml = ''; - data.forEach((countryCode) => { + data.forEach((countryWhitelistEntry) => { + let countryCode = countryWhitelistEntry.CC; bannedListHtml += ` ${getCountryName(countryCode)} (${countryCode.toUpperCase()})