tangled
alpha
login
or
join now
lesbian.skin
/
website
1
fork
atom
My website
lesbian.skin
1
fork
atom
overview
issues
pulls
pipelines
Remove leftover ffi file
lesbian.skin
2 years ago
8adce6e1
5bec33e8
-19
1 changed file
expand all
collapse all
unified
split
src
ffi.mjs
-19
src/ffi.mjs
···
1
1
-
export function get_route() {
2
2
-
return window.location.pathname
3
3
-
}
4
4
-
5
5
-
export function init_theme() {
6
6
-
if (window.matchMedia('(prefers-color-scheme:dark)').matches) {
7
7
-
document.documentElement.classList.add("dark")
8
8
-
} else {
9
9
-
document.documentElement.classList.remove("dark")
10
10
-
}
11
11
-
}
12
12
-
13
13
-
export function is_dark_mode() {
14
14
-
return document.documentElement.classList.contains("dark")
15
15
-
}
16
16
-
17
17
-
export function switch_theme() {
18
18
-
document.documentElement.classList.toggle("dark")
19
19
-
}