From cbf9627029859fb69991f55375713e42969cc8ec Mon Sep 17 00:00:00 2001 From: Jackie Luo Date: Fri, 25 Mar 2016 13:35:32 -0700 Subject: [PATCH] fix(composer-emoji): Only show replacement PNGs for OS X --- internal_packages/composer-emoji/lib/emoji-button-popover.jsx | 2 +- .../composer-emoji/lib/emoji-composer-extension.jsx | 2 +- internal_packages/composer-emoji/lib/emoji-picker.jsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal_packages/composer-emoji/lib/emoji-button-popover.jsx b/internal_packages/composer-emoji/lib/emoji-button-popover.jsx index 6ca9458c4..e88195279 100644 --- a/internal_packages/composer-emoji/lib/emoji-button-popover.jsx +++ b/internal_packages/composer-emoji/lib/emoji-button-popover.jsx @@ -269,7 +269,7 @@ class EmojiButtonPopover extends React.Component { ctx.fillStyle = 'black'; if (this.state.categorizedEmoji[category].length === 0) return; this.state.categorizedEmoji[category].forEach((emojiName, j) => { - if (missingEmojiList.indexOf(emojiName) === -1) { + if (process.platform === "darwin" && missingEmojiList.indexOf(emojiName) === -1) { const emojiChar = emoji.get(emojiName); ctx.fillText(emojiChar, position.x, position.y); } else { diff --git a/internal_packages/composer-emoji/lib/emoji-composer-extension.jsx b/internal_packages/composer-emoji/lib/emoji-composer-extension.jsx index 31c8b4124..febf61c02 100644 --- a/internal_packages/composer-emoji/lib/emoji-composer-extension.jsx +++ b/internal_packages/composer-emoji/lib/emoji-composer-extension.jsx @@ -205,7 +205,7 @@ class EmojiComposerExtension extends ComposerExtension { } } const emojiChar = emoji.get(emojiName); - if (missingEmojiList.indexOf(emojiName) !== -1) { + if (process.platform === "darwin" && missingEmojiList.indexOf(emojiName) !== -1) { const html = ` { const emojiClass = emojiIndex === i ? "btn btn-icon emoji-option" : "btn btn-icon"; let emojiChar = emoji.get(emojiOption); - if (missingEmojiList.indexOf(emojiOption) !== -1) { + if (process.platform === "darwin" && missingEmojiList.indexOf(emojiOption) !== -1) { emojiChar = (