Преглед изворни кода

auto update script executed

TC pushbot 5 пре 1 година
родитељ
комит
6869495116
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      web/components/access.html

+ 3 - 1
web/components/access.html

@@ -766,7 +766,9 @@
     function initWhitelistCountryList(){
     function initWhitelistCountryList(){
         $.get("/api/whitelist/list?type=country", function(data) {
         $.get("/api/whitelist/list?type=country", function(data) {
             let bannedListHtml = '';
             let bannedListHtml = '';
-            data.forEach((countryCode) => {
+            console.log(data);
+            data.forEach((countryWhitelistEntry) => {
+                let countryCode = countryWhitelistEntry.CC;
                 bannedListHtml += `
                 bannedListHtml += `
                 <tr>
                 <tr>
                     <td><i class="${countryCode} flag"></i> ${getCountryName(countryCode)} (${countryCode.toUpperCase()})</td>
                     <td><i class="${countryCode} flag"></i> ${getCountryName(countryCode)} (${countryCode.toUpperCase()})</td>