a
This commit is contained in:
parent
e257986975
commit
5705a15dce
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