From 848708d96244831295a02730552007f3b306dc71 Mon Sep 17 00:00:00 2001 From: Frank Date: Sat, 11 Nov 2023 23:52:30 +0100 Subject: [PATCH] minor tweak for Safari based on https://github.com/Aircoookie/WLED/commit/6570062e61bec08a1bc899ccd3ab8c7bd9967380 --- 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 22b14a73..793ac1d4 100644 --- a/wled00/data/index.js +++ b/wled00/data/index.js @@ -1361,7 +1361,7 @@ function updateTrail(e) { if (e==null) return; let sd = e.parentNode.getElementsByClassName('sliderdisplay')[0]; - if (sd && getComputedStyle(sd).getPropertyValue("--bg") !== "none") { + if (sd && getComputedStyle(sd).getPropertyValue("--bg").trim() !== "none") { // trim() for Safari var max = e.hasAttribute('max') ? e.attributes.max.value : 255; var perc = Math.round(e.value * 100 / max); if (perc < 50) perc += 2;