This commit is contained in:
nelle 2024-08-24 01:05:18 -06:00
parent e257986975
commit 5705a15dce

View file

@ -1,13 +1,5 @@
function onload() {
if (!localStorage.getItem('sgaEnabled')) {
disableSGA()
}
if (localStorage.getItem('sgaEnabled', true)) {
enableSGA()
}
if (localStorage.getItem('sgaEnabled', false)) {
disableSGA();
}
}
function enableSGA() {
@ -28,9 +20,9 @@ function toggleTheme() {
// elements.
// Select your element using indexing.
if (document.getElementById("body").style.fontFamily !== "standardGalactic, system-ui") {
disableSGA()
}
else {
enableSGA()
}
else {
disableSGA()
}
}