use document.body instead of getElementById

This commit is contained in:
nelle 2024-10-30 21:10:47 -06:00
parent 074dbb14c4
commit 7338da5d21

View file

@ -5,13 +5,13 @@ function getSGAState() {
} }
function enableSGA() { function enableSGA() {
document.getElementById("body").style.fontFamily = document.body.style.fontFamily =
"standardGalactic, system-ui"; "standardGalactic, system-ui";
sessionStorage.setItem("sgaEnabled", 1); sessionStorage.setItem("sgaEnabled", 1);
} }
function disableSGA() { function disableSGA() {
document.getElementById("body").style.fontFamily = document.body.style.fontFamily =
"departure-mono, system-ui"; "departure-mono, system-ui";
sessionStorage.removeItem("sgaEnabled"); sessionStorage.removeItem("sgaEnabled");
} }