From 656d3e9b42333d6f64c064763a1b67dd46a9f67d Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 19 Mar 2023 17:19:21 +0200 Subject: [PATCH] make emojis tabs order constant --- files/assets/js/emoji_modal.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/files/assets/js/emoji_modal.js b/files/assets/js/emoji_modal.js index 23c455dd5..dd51fed70 100644 --- a/files/assets/js/emoji_modal.js +++ b/files/assets/js/emoji_modal.js @@ -150,7 +150,8 @@ emojiRequest.onload = async () => { globalEmojis = emojis.map(({name, author, count}) => ({name, author, count})); - let classes = new Set(); + let classes = ["Marsey", "Platy", "Wolf", "Tay", "Marsey Flags", "Marsey Alphabet", "Classic", "Rage", "Wojak", "Misc"] + const bussyDOM = document.createElement("div"); for(let i = 0; i < emojis.length; i++) @@ -165,8 +166,6 @@ emojiRequest.onload = async () => { for(let i = 0; i < emoji.tags.length; i++) emojisSearchDictionary.updateTag(emoji.tags[i], emoji.name); - classes.add(emoji.kind); - // Create emoji DOM const emojiDOM = document.importNode(emojiButtonTemplateDOM.content, true).children[0];