-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathindex.html
More file actions
44 lines (44 loc) · 1.58 KB
/
Copy pathindex.html
File metadata and controls
44 lines (44 loc) · 1.58 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg?v=CanvasAnvil" />
<link rel="shortcut icon" href="/favicon.svg?v=CanvasAnvil" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CanvasAnvil</title>
<!-- Runs before first paint so a dark-theme user never sees an ivory
flash. Kept in sync with client/shared/theme.ts. -->
<script>
(function () {
try {
var stored = localStorage.getItem('CanvasAnvil-theme-v1');
if (stored !== 'light' && stored !== 'dark' && stored !== 'system') {
var legacy = localStorage.getItem('next-ai-draw-io-dark-mode');
stored = legacy === 'true' ? 'dark' : legacy === 'false' ? 'light' : 'system';
}
var dark =
stored === 'dark' ||
(stored === 'system' && window.matchMedia('(prefers-color-scheme: dark)').matches);
document.documentElement.classList.toggle('dark', dark);
} catch (e) {
/* Blocked storage just means we fall through to the light default. */
}
})();
</script>
<script type="module">
if (import.meta.hot?.on) {
import.meta.hot.on('vite:error', (error) => {
if (error.err) {
console.error(
[error.err.message, error.err.frame].filter(Boolean).join('\n'),
)
}
})
}
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/client/main.tsx"></script>
</body>
</html>