Skip to content

Commit

Permalink
Use emoji-datasource v15.0.1 as the images source
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneLem committed Jan 6, 2024
1 parent 57dacf7 commit 717601b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/emoji-mart/src/components/Emoji/Emoji.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ export default function Emoji(props) {
(props.set != 'native' && !props.spritesheet
? typeof props.getImageURL === 'function'
? props.getImageURL(props.set, emojiSkin.unified)
: `https://cdn.jsdelivr.net/npm/emoji-datasource-${props.set}@14.0.0/img/${props.set}/64/${emojiSkin.unified}.png`
: `https://cdn.jsdelivr.net/npm/emoji-datasource-${props.set}@15.0.1/img/${props.set}/64/${emojiSkin.unified}.png`
: undefined)

const spritesheetSrc =
typeof props.getSpritesheetURL === 'function'
? props.getSpritesheetURL(props.set)
: `https://cdn.jsdelivr.net/npm/emoji-datasource-${props.set}@14.0.0/img/${props.set}/sheets-256/64.png`
: `https://cdn.jsdelivr.net/npm/emoji-datasource-${props.set}@15.0.1/img/${props.set}/sheets-256/64.png`

return (
<span class="emoji-mart-emoji" data-emoji-set={props.set}>
Expand Down

0 comments on commit 717601b

Please sign in to comment.