prevent error screen on startup
parent
b6d239aa37
commit
fdc4ae1f7b
|
@ -1,7 +1,11 @@
|
||||||
async function grabEmojiData() {
|
async function grabEmojiData() {
|
||||||
|
try {
|
||||||
const response = await fetch('/static/emojis.2023.json')
|
const response = await fetch('/static/emojis.2023.json')
|
||||||
const emojiMartData = await response.json()
|
const emojiMartData = await response.json()
|
||||||
window.emojiMartData = emojiMartData
|
window.emojiMartData = emojiMartData
|
||||||
|
} catch (error) {
|
||||||
|
console.warn(`Failed to load emojis`)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
grabEmojiData()
|
grabEmojiData()
|
||||||
|
|
Loading…
Reference in New Issue