fixed: do not store unexisting settings

This commit is contained in:
quenousimporte 2023-01-22 21:24:09 +01:00
parent 74fe532bee
commit 429a7821ac
1 changed files with 5 additions and 2 deletions

View File

@ -619,11 +619,14 @@ function loadsettings()
if (item)
{
item = JSON.parse(item);
for (var key in item)
for (var key in settings)
{
if (item[key])
{
settings[key] = item[key];
}
}
}
document.body.style.background = settings.bgcolor;
document.body.style.fontFamily = settings.fontfamily;