From 7338da5d210cbf7d00b4d16e8c1d7d09d904e817 Mon Sep 17 00:00:00 2001 From: limepotato Date: Wed, 30 Oct 2024 21:10:47 -0600 Subject: [PATCH] use document.body instead of getElementById --- frontend/public/scripts/sga.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/public/scripts/sga.js b/frontend/public/scripts/sga.js index 9df1d96..865e68a 100644 --- a/frontend/public/scripts/sga.js +++ b/frontend/public/scripts/sga.js @@ -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"); }