Skip to content

Commit ad305da

Browse files
committed
pref: pwa
1 parent 3bf1011 commit ad305da

File tree

6 files changed

+3
-0
lines changed

6 files changed

+3
-0
lines changed

public/1024.png

-673 Bytes
Loading

public/192.png

-271 Bytes
Loading

public/256.png

-331 Bytes
Loading

public/512.png

-709 Bytes
Loading

public/apple-touch-icon.png

781 Bytes
Loading

src/components/ThemeToggle.astro

+3
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@
5151
} else {
5252
darkSchema.addEventListener("change", listener)
5353
document.documentElement.classList.toggle("dark", darkSchema?.matches)
54+
document
55+
.querySelector('meta[name="theme-color"]')
56+
.setAttribute("content", darkSchema?.matches ? "#16161a" : "#f6f8fa")
5457
}
5558

5659
function handleToggleTheme() {

0 commit comments

Comments
 (0)