Files
memind/index.html
T
john f504cd9530 feat(portal): one-time migration forces dark theme for all users
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>
2026-09-11 13:36:14 +08:00

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>