Minor holiday background image loading tweak.
This commit is contained in:
parent
bf94febb11
commit
5360fe49d4
@ -207,7 +207,7 @@ function onLoad()
|
||||
resetPUtil();
|
||||
|
||||
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", {
|
||||
method: 'get'
|
||||
})
|
||||
@ -428,7 +428,7 @@ function loadPresets(callback = null)
|
||||
pJson = json;
|
||||
populatePresets();
|
||||
reconnectWS();
|
||||
if (callback) callback();
|
||||
// if (callback) callback();
|
||||
})
|
||||
.catch(function (error) {
|
||||
showToast(error, true);
|
||||
|
1502
wled00/html_ui.h
1502
wled00/html_ui.h
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user