From 575437a584b2d0b697d1dabcfbe4d5a35785da09 Mon Sep 17 00:00:00 2001 From: mic Date: Sat, 11 Jan 2025 23:14:12 +0100 Subject: [PATCH] menu items numbering fixed --- popup/mzta-popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/popup/mzta-popup.js b/popup/mzta-popup.js index fb2f76b5..a7d1ce65 100644 --- a/popup/mzta-popup.js +++ b/popup/mzta-popup.js @@ -148,7 +148,7 @@ async function searchPrompt(allPrompts, tabId, tabType){ // } // } Array.from(filteredData).slice(first_num_el, max_num_el).forEach((item, index) => { - let number = (index < 9) ? (index + 1).toString() : '0'; + let number = (index + first_num_el).toString(); // Check if the number is already prepended to avoid duplication if (!item.numberPrepended) { item.label = `${number}. ${item.label}`;