From 01e006d79e6f45029e53ad512b01fedb0574e9c6 Mon Sep 17 00:00:00 2001 From: noellabo Date: Thu, 16 Sep 2021 02:28:43 +0900 Subject: [PATCH] Fix a crash in mobile emoji reaction search --- .../mastodon/features/ui/components/reaction_modal.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/javascript/mastodon/features/ui/components/reaction_modal.js b/app/javascript/mastodon/features/ui/components/reaction_modal.js index 7ef314ec8..42f2067ac 100644 --- a/app/javascript/mastodon/features/ui/components/reaction_modal.js +++ b/app/javascript/mastodon/features/ui/components/reaction_modal.js @@ -11,6 +11,7 @@ import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { supportsPassiveEvents } from 'detect-passive-events'; import { EmojiPicker as EmojiPickerAsync } from '../util/async-components'; import { buildCustomEmojis, categoriesFromEmojis } from '../../emoji/emoji'; +import { assetHost } from 'mastodon/utils/config'; const messages = defineMessages({ emoji: { id: 'emoji_button.label', defaultMessage: 'Insert emoji' }, @@ -33,6 +34,8 @@ let EmojiPicker, Emoji; // load asynchronously const listenerOptions = supportsPassiveEvents ? { passive: true } : false; +const backgroundImageFn = () => `${assetHost}/emoji/sheet_13.png`; + const notFoundFn = () => (