mirror of
https://github.com/wled/WLED.git
synced 2025-07-23 10:46:33 +00:00
Minor holiday background image loading tweak.
This commit is contained in:
parent
bf94febb11
commit
5360fe49d4
@ -207,7 +207,7 @@ function onLoad()
|
|||||||
resetPUtil();
|
resetPUtil();
|
||||||
|
|
||||||
applyCfg();
|
applyCfg();
|
||||||
if (cfg.theme.bg.url=="") {
|
if (cfg.theme.bg.url=="" || cfg.theme.bg.url === "https://picsum.photos/1920/1080") {
|
||||||
fetch((loc?`http://${locip}`:'.') + "/holidays.json", {
|
fetch((loc?`http://${locip}`:'.') + "/holidays.json", {
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
@ -428,7 +428,7 @@ function loadPresets(callback = null)
|
|||||||
pJson = json;
|
pJson = json;
|
||||||
populatePresets();
|
populatePresets();
|
||||||
reconnectWS();
|
reconnectWS();
|
||||||
if (callback) callback();
|
// if (callback) callback();
|
||||||
})
|
})
|
||||||
.catch(function (error) {
|
.catch(function (error) {
|
||||||
showToast(error, true);
|
showToast(error, true);
|
||||||
|
1502
wled00/html_ui.h
1502
wled00/html_ui.h
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user