Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
936bad45
Commit
936bad45
authored
Jan 01, 2024
by
Timothy J. Baek
Browse files
fix: default theme should be dark
parent
73ca167d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/app.html
src/app.html
+3
-3
No files found.
src/app.html
View file @
936bad45
...
...
@@ -12,12 +12,12 @@
(
!
(
'
theme
'
in
localStorage
)
&&
window
.
matchMedia
(
'
(prefers-color-scheme: light)
'
).
matches
)
)
{
document
.
documentElement
.
classList
.
add
(
'
light
'
);
}
else
if
(
localStorage
.
theme
===
'
dark
'
)
{
document
.
documentElement
.
classList
.
add
(
'
dark
'
);
}
else
{
}
else
if
(
localStorage
.
theme
)
{
localStorage
.
theme
.
split
(
'
'
).
forEach
((
e
)
=>
{
document
.
documentElement
.
classList
.
add
(
e
);
});
}
else
{
document
.
documentElement
.
classList
.
add
(
'
dark
'
);
}
</script>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment