From 668f5c85363f6f7c8808351fbd7526e2639b6f08 Mon Sep 17 00:00:00 2001 From: KindaCrayCray Date: Sat, 1 Jul 2023 00:54:33 +0200 Subject: [PATCH] Update old comment --- files/assets/js/emoji_modal.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files/assets/js/emoji_modal.js b/files/assets/js/emoji_modal.js index 2ec9c910a..87d376f49 100644 --- a/files/assets/js/emoji_modal.js +++ b/files/assets/js/emoji_modal.js @@ -522,8 +522,7 @@ function loadEmojis(inputTargetIDName) emojiEngineState = "loading" return fetchEmojis(); case "loading": - // this is a subpar solution because it means that globalEmojis won't be loaded for later keystrokes - // however, it doesn't matter because onInput only checks what the user is typing after everything is loaded + // this works because once the fetch completes, the first keystroke callback will fire and use the current value return Promise.reject(); case "ready": return Promise.resolve();