28 lines
772 B
HTML
28 lines
772 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<title>llink</title>
|
|
<script>
|
|
// Apply the stored theme before first paint to avoid a flash. Mirrors
|
|
// the logic in stores/theme-store.ts; defaults to dark.
|
|
try {
|
|
var m = localStorage.getItem('llink:theme');
|
|
var dark =
|
|
m === 'light'
|
|
? false
|
|
: m === 'system'
|
|
? matchMedia('(prefers-color-scheme: dark)').matches
|
|
: true;
|
|
if (dark) document.documentElement.classList.add('dark');
|
|
} catch (e) {
|
|
document.documentElement.classList.add('dark');
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
<script type="module" src="/src/renderer.tsx"></script>
|
|
</body>
|
|
</html>
|