log error

fix when remote datafile is empty
This commit is contained in:
quenousimporte 2023-11-08 16:24:39 +01:00
parent 7b90a2c0a4
commit f27baac09c
1 changed files with 2 additions and 1 deletions

View File

@ -1315,11 +1315,12 @@ function init()
if (data.length) if (data.length)
{ {
window.localStorage.setItem("data", JSON.stringify(data)); window.localStorage.setItem("data", JSON.stringify(data));
loadstorage();
} }
loadstorage();
}) })
.catch(err => .catch(err =>
{ {
console.log(err);
settings.password = prompt("Password: ", settings.password); settings.password = prompt("Password: ", settings.password);
savesettings(); savesettings();
init(); init();