forked from FoundKeyGang/FoundKey
client: also autocomplete flag emoji
Changelog: Changed
This commit is contained in:
parent
b030ced51c
commit
749015807a
1 changed files with 2 additions and 4 deletions
|
@ -54,15 +54,13 @@ type EmojiDef = {
|
|||
isCustomEmoji?: boolean;
|
||||
};
|
||||
|
||||
const lib = emojilist.filter(x => x.category !== 'flags');
|
||||
|
||||
const emjdb: EmojiDef[] = lib.map(x => ({
|
||||
const emjdb: EmojiDef[] = emojilist.map(x => ({
|
||||
emoji: x.char,
|
||||
name: x.name,
|
||||
url: char2filePath(x.char),
|
||||
}));
|
||||
|
||||
for (const x of lib) {
|
||||
for (const x of emojilist) {
|
||||
if (x.keywords) {
|
||||
for (const k of x.keywords) {
|
||||
emjdb.push({
|
||||
|
|
Loading…
Reference in a new issue