mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 02:52:11 +01:00
Catch service error for security settings
This commit is contained in:
parent
e3686cd673
commit
2c02306b24
2 changed files with 5 additions and 2 deletions
|
|
@ -1047,9 +1047,12 @@ class UIBinder {
|
|||
let overlay = ui.waitMessage(document.getElementById('divSecurityOptions'));
|
||||
overlay.style.borderRadius = '5px';
|
||||
getJSON('/getSecurity', (err, security) => {
|
||||
console.log(security);
|
||||
general.setSecurityConfig(security);
|
||||
overlay.remove();
|
||||
if (err) ui.serviceError(err);
|
||||
else {
|
||||
console.log(security);
|
||||
general.setSecurityConfig(security);
|
||||
}
|
||||
});
|
||||
}
|
||||
setHomePanel() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue