Make country badge visible

This commit is contained in:
rajchales-monito
2026-07-24 13:27:11 +02:00
parent ae088821e3
commit 942cee5d66
2 changed files with 15 additions and 1 deletions
+2 -1
View File
@@ -508,7 +508,8 @@ function statusButtons(item) {
function visitorCountry(item) {
const countryCode = item.countryCode || countryFromLanguage(item.language) || countryFromTimezone(item.timezone);
const countryFlag = item.countryFlag || flag(countryCode);
return countryCode ? `${countryFlag} ${escapeHtml(countryCode)}` : "zeme ?";
if (!countryCode) return `<span class="flag-emoji" aria-hidden="true">?</span><strong class="country-code">?</strong>`;
return `<span class="flag-emoji" aria-hidden="true">${countryFlag}</span><strong class="country-code">${escapeHtml(countryCode)}</strong>`;
}
function visitorDetails(conversation) {