Use different CDN for loading Twemoji assets (#24)

Use jsDelivr to increase the loading speed (when compared to MaxCDN) in China.
This commit is contained in:
Golden 2020-05-01 17:29:25 +08:00 committed by GitHub
parent 474b1296b6
commit a54425b926

View File

@ -87,7 +87,7 @@ export default function addComposerAutocomplete() {
onmouseenter={function() { onmouseenter={function() {
dropdown.setIndex($(this).parent().index() - 1); dropdown.setIndex($(this).parent().index() - 1);
}}> }}>
<img alt={emoji} class="emoji" draggable="false" src={'//twemoji.maxcdn.com/2/72x72/' + code + '.png'}/> <img alt={emoji} class="emoji" draggable="false" src={'//cdn.jsdelivr.net/gh/twitter/twemoji@12/assets/72x72/' + code + '.png'}/>
{name} {name}
</button> </button>
); );