Minor holiday background image loading tweak.

This commit is contained in:
Blaz Kristan 2021-07-15 20:08:00 +02:00
parent bf94febb11
commit 5360fe49d4
2 changed files with 753 additions and 753 deletions

View File

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

File diff suppressed because it is too large Load Diff