Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions proxy/js/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ const MD5 = function(d){var r = M(V(Y(X(d),8*d.length)));return r.toLowerCase()}

const flagEmojiTranslations = {
EN: 'GB',
JA: 'JP',
ZH: 'CH',
FA: 'IR',
UK: 'UA',
KA: 'GE',
HY: 'AM',
HE: 'IS',
}
function getFlagEmoji(countryCode) {
const codePoints = (flagEmojiTranslations[countryCode.toUpperCase()] || countryCode.toUpperCase())
Expand Down