parent
a11a99f92a
commit
8c6aa5ac09
3 changed files with 3 additions and 12 deletions
|
@ -14,11 +14,7 @@ window.addEventListener('load', async () => {
|
|||
|
||||
|
||||
function loadScheme() {
|
||||
return localStorage.getItem(PERSISTENCE_KEY) || loadDefaultScheme()
|
||||
}
|
||||
|
||||
function loadDefaultScheme() {
|
||||
return document.getElementById('defaultTheme').innerText || "system"
|
||||
return localStorage.getItem(PERSISTENCE_KEY) || "system"
|
||||
}
|
||||
|
||||
function saveScheme(scheme) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue