Skip to content

Commit

Permalink
👽 Use jsDelivr instead of MaxCDN (fix #128)
Browse files Browse the repository at this point in the history
  • Loading branch information
ENT8R committed Apr 22, 2024
1 parent 8188271 commit eaba8e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/js/badges.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function country(coordinates) {
for (const codePoint of feature.properties.emojiFlag) {
emoji.push(codePoint.codePointAt(0).toString(16));
}
const url = `https://twemoji.maxcdn.com/v/latest/svg/${emoji.join('-')}.svg`;
const url = `https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/${emoji.join('-')}.svg`;
return `<span><img class="country-flag" src="${url}" height="24" width="24"></span>`;
}

Expand Down

0 comments on commit eaba8e1

Please sign in to comment.