Files
BrowserOS/packages/browseros-agent/apps/agent/entrypoints/app/index.html
Dani Akash 290ee91a8b Add 'packages/browseros-agent/' from commit '90bd4be3008285bf3825aad3702aff98f872671a'
git-subtree-dir: packages/browseros-agent
git-subtree-mainline: 8f148d0918
git-subtree-split: 90bd4be300
2026-03-13 21:22:09 +05:30

35 lines
1.3 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>BrowserOS</title>
<meta name="manifest.open_in_tab" content="true" />
<script type="module">
import { themeStorage } from '@/lib/theme/theme-storage';
const applyTheme = (theme) => {
if (theme === 'dark') {
document.documentElement.classList.add('dark');
} else if (theme === 'light') {
document.documentElement.classList.add('light');
} else if (theme === 'system') {
// system or null - check system preference
if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
document.documentElement.classList.add('dark');
} else {
document.documentElement.classList.add('light');
}
}
};
themeStorage.getValue().then(applyTheme);
</script>
</head>
<body class="bg-background h-screen w-screen">
<div id="root"></div>
<script type="module" src="./main.tsx"></script>
</body>
</html>