mirror of
https://github.com/koala73/worldmonitor.git
synced 2026-04-25 17:14:57 +02:00
feat(02-01): add FOUC prevention scripts and wire entry points
- Add inline FOUC prevention script to index.html and settings.html <head> - Update CSP script-src to allow 'unsafe-inline' for FOUC prevention - Import and call applyStoredTheme() in src/main.ts before App init - Import and call applyStoredTheme() in src/settings-main.ts before loadDesktopSecrets Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>World Monitor Settings</title>
|
||||
<script>(function(){try{var t=localStorage.getItem('worldmonitor-theme');if(t==='light')document.documentElement.dataset.theme='light';}catch(e){}})()</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="settings-shell">
|
||||
|
||||
Reference in New Issue
Block a user