f504cd9530
Reset saved light preferences once via memind-theme-migration marker so existing visitors switch to dark on next load; inline boot script and OA drive share the same migration version. Co-authored-by: Cursor <cursoragent@cursor.com>
34 lines
1.2 KiB
HTML
34 lines
1.2 KiB
HTML
<!doctype html>
|
|
<html lang="zh-CN" data-theme="dark">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<script>
|
|
(function () {
|
|
var storageKey = 'memind-theme';
|
|
var migrationKey = 'memind-theme-migration';
|
|
var migrationVersion = 'dark-default-2026-09-11';
|
|
if (localStorage.getItem(migrationKey) !== migrationVersion) {
|
|
localStorage.setItem(storageKey, 'dark');
|
|
localStorage.setItem(migrationKey, migrationVersion);
|
|
}
|
|
var stored = localStorage.getItem(storageKey);
|
|
var theme = stored === 'light' || stored === 'dark' ? stored : 'dark';
|
|
document.documentElement.dataset.theme = theme;
|
|
document.documentElement.style.colorScheme = theme;
|
|
})();
|
|
</script>
|
|
<meta
|
|
name="viewport"
|
|
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"
|
|
/>
|
|
<meta name="mobile-web-app-capable" content="yes" />
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
<meta name="theme-color" content="#0f1419" />
|
|
<title>TKMind</title>
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
</body>
|
|
</html>
|