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);