mirror of
https://github.com/flarum/framework.git
synced 2024-11-28 20:16:08 +08:00
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:
parent
474b1296b6
commit
a54425b926
|
@ -87,7 +87,7 @@ export default function addComposerAutocomplete() {
|
|||
onmouseenter={function() {
|
||||
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}
|
||||
</button>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue
Block a user