mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-08-05 10:55:29 +00:00
The pre-auth login page cannot call /api/prefs/theme (401) and a freshly opened device has nothing in localStorage, so it always fell back to the built-in default palette instead of the theme the user set in-app. Inject the profile's active theme into the login page at render time so it matches the in-app theme on any device, including a first visit. Scoped to single-user instances (no way to know whose theme to show before sign-in); localStorage and the default :root remain fallbacks. The injected JSON is escaped so it cannot break out of the surrounding <script>. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| fonts | ||
| icons | ||
| js | ||
| lib | ||
| app.js | ||
| icon.ico | ||
| index.html | ||
| login.html | ||
| manifest.json | ||
| modal-control-variants.html | ||
| style.css | ||
| sw.js | ||
| wave-variants.html | ||
| whirlpool-variants.html | ||