mirror of
https://github.com/andrewyng/openworker.git
synced 2026-09-03 13:00:37 +00:00
Imported from andrewyng/aisuite@1b4bbf303e (contents of its platform/ directory, hoisted to the repo root). Development history prior to this commit lives in that repository. Co-authored-by: Devika <devikaverma11@gmail.com>
22 lines
777 B
HTML
22 lines
777 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>OpenWorker</title>
|
|
<!-- Resolve the theme before first paint (no white flash for dark users).
|
|
Must match src/theme.ts: key "openwork-theme", absent/invalid = auto = follow macOS. -->
|
|
<script>
|
|
try {
|
|
var t = localStorage.getItem("openwork-theme");
|
|
var dark = t === "dark" || (t !== "light" && window.matchMedia("(prefers-color-scheme: dark)").matches);
|
|
document.documentElement.dataset.theme = dark ? "dark" : "light";
|
|
} catch (e) {}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
</body>
|
|
</html>
|