summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/behaviors
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-06-27 00:10:17 -0500
committerMike Greiling <mike@pixelcog.com>2017-06-27 00:10:17 -0500
commit27a1348f20dee09758e053b465a2d2ff37ffb649 (patch)
treee6dea876edd0e44c272180b9f0c3a55552168cc7 /app/assets/javascripts/behaviors
parent88114c41fb4cb1c281df613ee8647c63848e37ea (diff)
downloadgitlab-ce-27a1348f20dee09758e053b465a2d2ff37ffb649.tar.gz
split emoji support methods from the async module
Diffstat (limited to 'app/assets/javascripts/behaviors')
-rw-r--r--app/assets/javascripts/behaviors/gl_emoji.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/app/assets/javascripts/behaviors/gl_emoji.js b/app/assets/javascripts/behaviors/gl_emoji.js
index 3a29254cf99..17422f5cece 100644
--- a/app/assets/javascripts/behaviors/gl_emoji.js
+++ b/app/assets/javascripts/behaviors/gl_emoji.js
@@ -1,10 +1,9 @@
import installCustomElements from 'document-register-element';
-import { emojiMap, normalizeEmojiName, isEmojiUnicodeSupported, getUnicodeSupportMap } from '../emoji';
+import { emojiMap, normalizeEmojiName } from '../emoji';
+import isEmojiUnicodeSupported from '../emoji/support';
installCustomElements(window);
-const generatedUnicodeSupportMap = getUnicodeSupportMap();
-
function emojiImageTag(name, src) {
return `<img class="emoji" title=":${name}:" alt=":${name}:" src="${src}" width="20" height="20" align="absmiddle" />`;
}
@@ -82,7 +81,7 @@ function installGlEmojiElement() {
if (
emojiUnicode &&
isEmojiUnicode &&
- !isEmojiUnicodeSupported(generatedUnicodeSupportMap, emojiUnicode, unicodeVersion)
+ !isEmojiUnicodeSupported(emojiUnicode, unicodeVersion)
) {
// CSS sprite fallback takes precedence over image fallback
if (hasCssSpriteFalback) {
@@ -106,5 +105,4 @@ function installGlEmojiElement() {
export {
installGlEmojiElement,
glEmojiTag,
- emojiImageTag,
};