v2.1.6 Distro repair

This commit is contained in:
Robert Strouse 2023-09-17 09:48:59 -07:00
parent 4ad2cf7567
commit 3590f0d124
3 changed files with 6 additions and 6 deletions

View file

@ -3,11 +3,11 @@
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<link rel="stylesheet" href="main.css?v=2.1.6p" type="text/css" />
<link rel="stylesheet" href="widgets.css?v=2.1.6p" type="text/css" />
<link rel="stylesheet" href="icons.css?v=2.1.6p" type="text/css" />
<link rel="stylesheet" href="main.css?v=2.1.6" type="text/css" />
<link rel="stylesheet" href="widgets.css?v=2.1.6" type="text/css" />
<link rel="stylesheet" href="icons.css?v=2.1.6" type="text/css" />
<link rel="icon" type="image/png" href="favicon.png" />
<script type="text/javascript" src="index.js?v=2.1.6p"></script>
<script type="text/javascript" src="index.js?v=2.1.6"></script>
</head>
<body>
<div id="divContainer" class="container main" data-auth="false">

View file

@ -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) {