Skip to content

Commit

Permalink
Merge pull request #533 from Adamant-im/hotfix/emoji-picker-data
Browse files Browse the repository at this point in the history
fix(`EmojiPicker`): bundle emojis data instead of downloading from CDN
  • Loading branch information
bludnic authored Sep 28, 2023
2 parents f20a89e + 6545a31 commit 21d529c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "adamant-im",
"version": "4.2.0",
"version": "4.2.1",
"author": "ADAMANT Foundation <devs@adamant.im>",
"license": "GPLv3",
"description": "Decentralized Messenger",
Expand Down
1 change: 1 addition & 0 deletions public/emojis/data.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components/EmojiPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default defineComponent({
const picker = ref<Picker>()
onMounted(async () => {
const { data } = await axios.get('https://cdn.jsdelivr.net/npm/@emoji-mart/data')
const { data } = await axios.get('/emojis/data.json')
picker.value = new Picker({
data,
Expand Down

1 comment on commit 21d529c

@vercel
Copy link

@vercel vercel bot commented on 21d529c Sep 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

adamant-im – ./

adamant-im-adamant-team.vercel.app
adamant-im-git-master-adamant-team.vercel.app
msg2.adamant.im

Please sign in to comment.