Hearthforge
Sign in
Register
hearthforge
Code
Branches
Tags
Commits
Issues
Patches
Releases
Pipelines
hearthforge
/
web
/
static
/
assets
/
theme.js
theme.js
⎇
6a65f417 (detached)
master
Go
Raw
1
(
function
(){
try
{
var
m
=
document
.
cookie
.
match
(
/(?:^|;)\s*theme=([^;]+)/
);
var
t
=
m
&&
m
[
1
];
if
(
t
===
'dark'
||
t
===
'light'
)
document
.
documentElement
.
setAttribute
(
'data-theme'
,
t
)}
catch
(
e
){}})()
2