Merge pull request #1397 from bluesky-social/eric/fix-startup-error

prevent error screen on startup
zio/stable
Eric Bailey 2023-09-06 16:33:56 -05:00 committed by GitHub
commit b76b56b4a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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()