-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
25 lines (25 loc) · 939 Bytes
/
Copy pathindex.html
File metadata and controls
25 lines (25 loc) · 939 Bytes
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>WorkFlowStudio</title>
<script>
(function() {
// 启动阶段先恢复主题,避免 React 挂载前出现亮暗色闪烁;旧键用于兼容历史版本。
var theme = localStorage.getItem("workflow-studio.theme") || localStorage.getItem("worktree-desk.theme");
if (theme === "light" || theme === "dark") {
document.documentElement.setAttribute("data-theme", theme);
} else if (!theme || theme === "system") {
if (window.matchMedia("(prefers-color-scheme: dark)").matches) {
document.documentElement.setAttribute("data-theme", "dark");
}
}
})();
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>