Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
mithril-security
/
blind_chat
like
105
Runtime error
App
Files
Files
Community
1
d54ea4b
blind_chat
/
src
/
lib
/
switchTheme.ts
lauro1
updates
d54ea4b
about 1 year ago
raw
Copy download link
history
blame
Safe
158 Bytes
export
function
switchTheme
(
) {
const
{ classList } =
document
.
querySelector
(
"html"
)
as
HTMLElement
;
classList.
add
(
"dark"
);
localStorage
.
theme
=
"dark"
;
}