use document.body instead of getElementById
This commit is contained in:
parent
074dbb14c4
commit
7338da5d21
1 changed files with 2 additions and 2 deletions
|
@ -5,13 +5,13 @@ function getSGAState() {
|
|||
}
|
||||
|
||||
function enableSGA() {
|
||||
document.getElementById("body").style.fontFamily =
|
||||
document.body.style.fontFamily =
|
||||
"standardGalactic, system-ui";
|
||||
sessionStorage.setItem("sgaEnabled", 1);
|
||||
}
|
||||
|
||||
function disableSGA() {
|
||||
document.getElementById("body").style.fontFamily =
|
||||
document.body.style.fontFamily =
|
||||
"departure-mono, system-ui";
|
||||
sessionStorage.removeItem("sgaEnabled");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue