From 70c277d8a1542e16e3214bd8505c89bfad24c0eb Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Tue, 30 May 2023 13:23:26 +0200 Subject: [PATCH] bugfix: don't hide sound sim options for "double note" effects There was is a typo in this line - apparently the "\u" was missing, so the search string was interpreted as octal char instead of unicode. --- wled00/data/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/data/index.js b/wled00/data/index.js index 10b49d4e..999301a5 100644 --- a/wled00/data/index.js +++ b/wled00/data/index.js @@ -1256,7 +1256,7 @@ function updateSelectedFx() var segs = gId("segcont").querySelectorAll(`div[data-map="map2D"]`); for (const seg of segs) if (selectedName.indexOf("\u25A6")<0) seg.classList.remove('hide'); else seg.classList.add('hide'); var segs = gId("segcont").querySelectorAll(`div[data-snd="si"]`); - for (const seg of segs) if (selectedName.indexOf("\u266A")<0 && selectedName.indexOf("\266B")<0) seg.classList.add('hide'); else seg.classList.remove('hide'); // also "♫ "? + for (const seg of segs) if (selectedName.indexOf("\u266A")<0 && selectedName.indexOf("\u266B")<0) seg.classList.add('hide'); else seg.classList.remove('hide'); // also "♫ "? } }