From 27a1348f20dee09758e053b465a2d2ff37ffb649 Mon Sep 17 00:00:00 2001 From: Mike Greiling Date: Tue, 27 Jun 2017 00:10:17 -0500 Subject: split emoji support methods from the async module --- app/assets/javascripts/behaviors/gl_emoji.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'app/assets/javascripts/behaviors') 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 `:${name}:`; } @@ -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, }; -- cgit v1.2.3