diff options
-rw-r--r-- | app/javascript/flavours/glitch/util/emoji/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/util/emoji/index.js b/app/javascript/flavours/glitch/util/emoji/index.js index bd3c083e3..22b657b05 100644 --- a/app/javascript/flavours/glitch/util/emoji/index.js +++ b/app/javascript/flavours/glitch/util/emoji/index.js @@ -11,7 +11,7 @@ const darkEmoji = 'π±πβ«π€β¬βΌοΈβΎβΌοΈβοΈβͺοΈπ£π³π·πΈ const lightEmoji = 'π½βΎπβοΈπ¨ποΈππ₯π»πβββΈοΈπ©οΈππππ§οΈππππππβ οΈπ¨οΈπππ¬πππ³οΈβͺβ¬β½β»οΈβ«οΈ'; const emojiFilename = (filename, match) => { - const borderedEmoji = document.body.classList.contains('skin-mastodon-light') ? lightEmoji : darkEmoji; + const borderedEmoji = (document.body && document.body.classList.contains('skin-mastodon-light')) ? lightEmoji : darkEmoji; return borderedEmoji.includes(match) ? (filename + '_border') : filename; }; |