From 6d79bf4c0a22ffe0a91d8feb7cd9786928445c97 Mon Sep 17 00:00:00 2001 From: Wolfgang <39681420+LucasWolfgang@users.noreply.github.com> Date: Sun, 17 Apr 2022 11:16:41 -0300 Subject: [PATCH] Update index.js Removed automatically set message. Co-authored-by: Simon Schneegans --- index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 695a34a..7b45337 100644 --- a/index.js +++ b/index.js @@ -41,11 +41,9 @@ try { if (val > max) val = max; let hue = 0 if (invertColorRange == '') { - hue = Math.floor((val - min) / (max - min) * 100); - content.message = val + " / " + max + " " + content.message + hue = Math.floor((val - min) / (max - min) * 120); } else { - hue = Math.floor((max - val) / (max - min) * 100); - content.message = valColorRange + " " + content.message + hue = Math.floor((max - val) / (max - min) * 120); } content.color = "hsl(" + hue + ", 100%, 50%)"; } else if (color != '') {