diff --git a/SomfyController.littlefs.bin b/SomfyController.littlefs.bin index ff383f7..22e44da 100644 Binary files a/SomfyController.littlefs.bin and b/SomfyController.littlefs.bin differ diff --git a/data/index.html b/data/index.html index 24b19e8..47d02af 100644 --- a/data/index.html +++ b/data/index.html @@ -3,11 +3,11 @@ - - - + + + - +
diff --git a/data/index.js b/data/index.js index f327fbb..c3462a0 100644 --- a/data/index.js +++ b/data/index.js @@ -1943,7 +1943,7 @@ class Somfy { // First get the optiongroup for the shades. let optGroup = document.getElementById('optgrpVRShades'); if (typeof shades === 'undefined' || shades.length === 0) { - if (typeof optGroup !== 'undefined') optGroup.remove(); + if (optGroup && typeof optGroup !== 'undefined') optGroup.remove(); } else { if (typeof optGroup === 'undefined' || !optGroup) { @@ -2204,7 +2204,7 @@ class Somfy { // First get the optiongroup for the shades. let optGroup = document.getElementById('optgrpVRGroups'); if (typeof groups === 'undefined' || groups.length === 0) { - if (typeof optGroup !== 'undefined') optGroup.remove(); + if (optGroup && typeof optGroup !== 'undefined') optGroup.remove(); } else { if (typeof optGroup === 'undefined' || !optGroup) {