fixed: do not store unexisting settings
This commit is contained in:
parent
74fe532bee
commit
429a7821ac
5
main.js
5
main.js
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue