From 22961e97d85e9bd487ad2fce0807f54ef421ae6e Mon Sep 17 00:00:00 2001 From: doruk Date: Fri, 11 Sep 2026 15:35:24 +0300 Subject: [PATCH] gh-15363: Fix boost font shuffle off-by-one index (gh-15365) --- src/zen/boosts/ZenBoostsEditor.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zen/boosts/ZenBoostsEditor.mjs b/src/zen/boosts/ZenBoostsEditor.mjs index 41d4812ff..07ca761bf 100644 --- a/src/zen/boosts/ZenBoostsEditor.mjs +++ b/src/zen/boosts/ZenBoostsEditor.mjs @@ -1521,7 +1521,7 @@ ${cssSelector} { shuffleBoost() { const availFonts = this.fetchFontList(); const commonFonts = this.commonFonts; - let font = commonFonts[Math.round(Math.random() * commonFonts.length)]; + let font = commonFonts[Math.floor(Math.random() * commonFonts.length)]; if (availFonts.includes(font)) { this.currentBoostData.fontFamily = font; }