Skip to content

Commit

Permalink
fix: twemojify different state depending on ext
Browse files Browse the repository at this point in the history
  • Loading branch information
Yizack committed Jun 10, 2023
1 parent 0e50606 commit 0178492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/components/Twemojify.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const props = defineProps({
}
})
const twemojify = useState('twemojify', () => ({}) as { [key: string]: string })
const twemojify = useState(`twemojify:${props.png ? 'png' : 'svg'}`, () => ({}) as { [key: string]: string })
const parsedText = ref(props.text)
const emojis = parse(props.text, { assetType: props.png ? 'png' : 'svg' })
Expand Down

0 comments on commit 0178492

Please sign in to comment.