From 855e6737bed8893c19e8ae6bd710f10a8ac060ff Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Sat, 20 Dec 2025 21:19:55 +0100 Subject: [PATCH] minor html and JS fixes * avoid implicit creation of global vars * removed stray * fix assignment with undefined variables --- wled00/data/pixart/pixart.js | 2 +- wled00/data/pixelforge/pixelforge.htm | 4 ++-- wled00/data/pxmagic/pxmagic.htm | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/wled00/data/pixart/pixart.js b/wled00/data/pixart/pixart.js index 7c347f19..08589666 100644 --- a/wled00/data/pixart/pixart.js +++ b/wled00/data/pixart/pixart.js @@ -288,7 +288,7 @@ function generateSegmentOptions(array) { // Get segments from device async function getSegments() { - cv = gurl.value; + const cv = gurl.value; if (cv.length > 0 ){ try { var arr = []; diff --git a/wled00/data/pixelforge/pixelforge.htm b/wled00/data/pixelforge/pixelforge.htm index a6c130ed..b55a956d 100644 --- a/wled00/data/pixelforge/pixelforge.htm +++ b/wled00/data/pixelforge/pixelforge.htm @@ -381,8 +381,8 @@ button, .btn {