kopia lustrzana https://github.com/Aircoookie/WLED
Missing presets bugfix.
rodzic
1de009a80d
commit
e6f74751d4
|
@ -440,7 +440,8 @@ function loadPresets(callback = null)
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (!res.ok) showErrorToast();
|
if (res.status=="404") return {"0":{}};
|
||||||
|
//if (!res.ok) showErrorToast();
|
||||||
return res.json();
|
return res.json();
|
||||||
})
|
})
|
||||||
.then(json => {
|
.then(json => {
|
||||||
|
@ -449,7 +450,7 @@ function loadPresets(callback = null)
|
||||||
populatePresets();
|
populatePresets();
|
||||||
})
|
})
|
||||||
.catch((e)=>{
|
.catch((e)=>{
|
||||||
showToast(e, true);
|
//showToast(e, true);
|
||||||
presetError(false);
|
presetError(false);
|
||||||
})
|
})
|
||||||
.finally(()=>{
|
.finally(()=>{
|
||||||
|
|
1773
wled00/html_ui.h
1773
wled00/html_ui.h
Plik diff jest za duży
Load Diff
Ładowanie…
Reference in New Issue