main #8
1 changed files with 4 additions and 12 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue