-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathindex.html
More file actions
29 lines (29 loc) · 1.12 KB
/
Copy pathindex.html
File metadata and controls
29 lines (29 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<link rel="manifest" href="/manifest.json" />
<meta name="theme-color" content="#7aa2f7" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<link rel="apple-touch-icon" href="/icon.svg" />
<link rel="icon" href="/icon.svg" type="image/svg+xml" />
<title>Digarr</title>
</head>
<body>
<script>
// Apply theme before React mounts to prevent FOUC
(() => {
var m = localStorage.getItem('digarr-theme') || 'system';
var c = localStorage.getItem('digarr-color-theme') || 'tokyonight';
var resolved = m === 'system'
? (matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark')
: m;
document.documentElement.setAttribute('data-theme', `${c}-${resolved}`);
})();
</script>
<div id="root"></div>
<script type="module" src="/src/web/main.tsx"></script>
</body>
</html>