10 lines
463 B
JavaScript
10 lines
463 B
JavaScript
import isEmojiUnicodeSupported from './is_emoji_unicode_supported';
|
|
import getUnicodeSupportMap from './unicode_support_map';
|
|
|
|
// cache browser support map between calls
|
|
let browserUnicodeSupportMap;
|
|
|
|
export default function isEmojiUnicodeSupportedByBrowser(emojiUnicode, unicodeVersion) {
|
|
browserUnicodeSupportMap = browserUnicodeSupportMap || getUnicodeSupportMap();
|
|
return isEmojiUnicodeSupported(browserUnicodeSupportMap, emojiUnicode, unicodeVersion);
|
|
}
|