From 845c202109d1e2b56d00203c7bc2a9d3ac9387fb Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 29 Dec 2022 09:31:49 +0900 Subject: [PATCH] =?UTF-8?q?fix(client):=20=E3=82=AA=E3=83=BC=E3=83=88?= =?UTF-8?q?=E3=82=B3=E3=83=B3=E3=83=97=E3=83=AA=E3=83=BC=E3=83=88=E3=81=8C?= =?UTF-8?q?=E5=87=BA=E3=81=AA=E3=81=84=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/components/MkAutocomplete.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/components/MkAutocomplete.vue b/packages/frontend/src/components/MkAutocomplete.vue index 72783921d..0e16acd33 100644 --- a/packages/frontend/src/components/MkAutocomplete.vue +++ b/packages/frontend/src/components/MkAutocomplete.vue @@ -56,14 +56,14 @@ type EmojiDef = { const lib = emojilist.filter(x => x.category !== 'flags'); +const char2path = defaultStore.state.emojiStyle === 'twemoji' ? char2twemojiFilePath : char2fluentEmojiFilePath; + const emjdb: EmojiDef[] = lib.map(x => ({ emoji: x.char, name: x.name, url: char2path(x.char), })); -const char2path = defaultStore.state.emojiStyle === 'twemoji' ? char2twemojiFilePath : char2fluentEmojiFilePath; - for (const x of lib) { if (x.keywords) { for (const k of x.keywords) {