This commit is contained in:
quenousimporte 2023-11-16 10:50:29 +01:00
parent 8b8c7761d9
commit 70cfa80ed7
1 changed files with 4 additions and 9 deletions

13
main.js
View File

@ -1275,14 +1275,6 @@ function loadstorage()
} }
} }
function applystyle()
{
document.body.style.fontSize = settings.fontsize;
document.body.style.lineHeight = settings.lineheight;
document.body.style.marginLeft = settings.margins;
document.body.style.marginRight = settings.margins;
}
function loadsettings() function loadsettings()
{ {
settings = {...defaultsettings}; settings = {...defaultsettings};
@ -1299,7 +1291,10 @@ function loadsettings()
} }
} }
applystyle(); document.body.style.fontSize = settings.fontsize;
document.body.style.lineHeight = settings.lineheight;
document.body.style.marginLeft = settings.margins;
document.body.style.marginRight = settings.margins;
if (settings.titlebydefault && title.hidden) if (settings.titlebydefault && title.hidden)
{ {