Make country badge visible
This commit is contained in:
+2
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user