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