Revert "dont have a max limit for mini picker"

This reverts commit 7f3b607162.
pull/139/head
Aevann 2023-03-10 04:14:42 +02:00
parent 5e4a843e8e
commit 07ff206524
1 changed files with 2 additions and 0 deletions

View File

@ -377,10 +377,12 @@ function populate_speed_emoji_modal(results, textbox)
emoji_index = 0;
speed_carot_modal.innerHTML = "";
const MAXXX = 25;
// Not sure why the results is a Set... but oh well
let i = 0;
for (let result of results)
{
if (i++ > MAXXX) return i;
let emoji_option = document.createElement("div");
emoji_option.className = "speed-modal-option emoji-option " + (i === 1 ? "selected" : "");
emoji_option.tabIndex = 0;