prevent error screen on startup

zio/stable
Eric Bailey 2023-09-06 16:27:44 -05:00
parent b6d239aa37
commit fdc4ae1f7b
1 changed files with 7 additions and 3 deletions

View File

@ -1,7 +1,11 @@
async function grabEmojiData() {
try {
const response = await fetch('/static/emojis.2023.json')
const emojiMartData = await response.json()
window.emojiMartData = emojiMartData
} catch (error) {
console.warn(`Failed to load emojis`)
}
}
grabEmojiData()