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,9 +619,12 @@ function loadsettings()
if (item) if (item)
{ {
item = JSON.parse(item); item = JSON.parse(item);
for (var key in item) for (var key in settings)
{ {
settings[key] = item[key]; if (item[key])
{
settings[key] = item[key];
}
} }
} }