From 241d5752159c0872da8efdd2c4d08388bd00dfe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Sk=C3=B6ld?= Date: Mon, 15 Jul 2024 02:41:06 +0200 Subject: [PATCH] Fix default textbox highlight now working. --- web/js/textbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/js/textbox.js b/web/js/textbox.js index 64e604d..6bd997f 100644 --- a/web/js/textbox.js +++ b/web/js/textbox.js @@ -168,7 +168,7 @@ app.registerExtension({ const shouldHighlightGradient = inputEl.highlightGradient; const loraColor = colors ? colors[0] : undefined; - if (!colors || !errorColor || !loraColor || !shouldHighlightGradient) { + if (!colors || !errorColor || !loraColor || shouldHighlightGradient == undefined) { setTimeout(() => syncText(inputEl, overlayEl), 5); return; }