mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-04 20:54:53 +00:00
29 lines
994 B
HTML
29 lines
994 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<link rel="icon" href="/api/application-images/favicon" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta name="robots" content="noindex" />
|
|
<link rel="manifest" href="/app.webmanifest" />
|
|
<link rel="apple-touch-icon" href="/img/static-logo-512.png" />
|
|
<script>
|
|
try {
|
|
const mode = localStorage.getItem('mode-watcher-mode') || 'system';
|
|
const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
|
const isDark = mode === 'dark' || (mode === 'system' && prefersDark);
|
|
|
|
document.documentElement.classList.toggle('dark', isDark);
|
|
document.documentElement.style.colorScheme = isDark ? 'dark' : 'light';
|
|
} catch (e) {
|
|
// Ignore errors
|
|
// Failing to set theme is not critical
|
|
}
|
|
</script>
|
|
%sveltekit.head%
|
|
</head>
|
|
<body data-sveltekit-preload-data="hover">
|
|
<div style="display: contents">%sveltekit.body%</div>
|
|
</body>
|
|
</html>
|