From 2a13c9007610100aecebaacc301f8d611dd26002 Mon Sep 17 00:00:00 2001 From: Andy Fuchs Date: Mon, 27 Nov 2023 19:34:49 +0100 Subject: [PATCH] fixed a whitespace issue this was caused by the linter, where html contained too much whitespace --- Sources/com.elgato.philips-hue.sdPlugin/pi/js/cyclePI.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sources/com.elgato.philips-hue.sdPlugin/pi/js/cyclePI.js b/Sources/com.elgato.philips-hue.sdPlugin/pi/js/cyclePI.js index 3ef0f4d..8a0e07c 100644 --- a/Sources/com.elgato.philips-hue.sdPlugin/pi/js/cyclePI.js +++ b/Sources/com.elgato.philips-hue.sdPlugin/pi/js/cyclePI.js @@ -135,7 +135,9 @@ function CyclePI(inContext, inLanguage, inStreamDeckVersion, inPluginVersion) { // Add a new color picker to document let addColorPicker = i => { let picker = document.createElement('div'); - picker.innerHTML = getColorPicker(i); + const cphtml = getColorPicker(i).trim(); + picker.innerHTML = cphtml; + if (lightCache.xy != null) { document.querySelector('#color-input-container .sdpi-item-value').append(picker.firstChild);