From 4bf6bfedfacab4ab3e34dd6b1dc81e1fc9f5d29f Mon Sep 17 00:00:00 2001 From: KarryCharon Date: Fri, 26 Jul 2024 13:33:28 +0800 Subject: [PATCH] fix #295 --- web/js/customColors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/js/customColors.js b/web/js/customColors.js index 8138489..2b0fefc 100644 --- a/web/js/customColors.js +++ b/web/js/customColors.js @@ -30,7 +30,7 @@ app.registerExtension({ requestAnimationFrame(() => { const menus = document.querySelectorAll(".litecontextmenu"); for (let i = menus.length - 1; i >= 0; i--) { - if (menus[i].firstElementChild.textContent.includes("No color")) { + if (menus[i].firstElementChild.textContent.includes("No color") || menus[i].firstElementChild.value?.content?.includes("No color")) { $el( "div.litemenu-entry.submenu", {