mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-05 00:19:59 +00:00
fix: ssr for emojis
This commit is contained in:
parent
2f8e47c947
commit
c38b8c13ca
1 changed files with 7 additions and 5 deletions
|
@ -76,9 +76,11 @@ export async function setupI18n() {
|
|||
}
|
||||
|
||||
export async function setupEmojis() {
|
||||
const promise = import('@emoji-mart/data').then(r => r.default)
|
||||
const { init } = await import('emoji-mart')
|
||||
init({
|
||||
data: () => promise,
|
||||
})
|
||||
if (process.client) {
|
||||
const promise = import('@emoji-mart/data').then(r => r.default)
|
||||
const { init } = await import('emoji-mart')
|
||||
init({
|
||||
data: () => promise,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue