diff options
author | Eugen <eugen@zeonfederated.com> | 2017-01-05 13:45:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-05 13:45:21 +0100 |
commit | 9e6ceb3201a2737e676decf3df9605714632a300 (patch) | |
tree | fba30a6b8a5b23cfa371422aa6ed3e3cf9934b88 /app/assets/javascripts | |
parent | 87f76d4095ff5008236a7bfa6a33c136cbd50b29 (diff) |
Revert "Display native emoji on browsers which support it"
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/components/emoji.jsx | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/app/assets/javascripts/components/emoji.jsx b/app/assets/javascripts/components/emoji.jsx index 990aea5be..c93c07c74 100644 --- a/app/assets/javascripts/components/emoji.jsx +++ b/app/assets/javascripts/components/emoji.jsx @@ -1,18 +1,9 @@ import emojione from 'emojione'; -import detectVersion from 'mojibaka'; emojione.imageType = 'png'; emojione.sprites = false; emojione.imagePathPNG = '/emoji/'; -let emoji_version = detectVersion(); - export default function emojify(text) { - // Browser too old to support native emoji - if (emoji_version < 9.0) { - return emojione.toImage(text); - // Convert short codes into native emoji - } else { - return emojione.shortnameToUnicode(text); - } + return emojione.toImage(text); }; |