fix: suppress login screen flash on load when already authenticated

Adds a synchronous inline script that checks localStorage before first
paint and sets html.ns-authed, hiding #setup-screen via CSS immediately.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
HoneyandClaude Sonnet 4.6 committed 2026-05-18 23:28:32 +02:00
1 parent 43312be65d
commit eeb822bbb2
2 files changed
+2

No files matched your search

+1
View File
@@ -19,6 +19,7 @@
<script type="module" src="/src/main.js"></script>
</head>
<body>
<script>(function(){try{if(localStorage.getItem('ns_cfg'))document.documentElement.classList.add('ns-authed');}catch(e){}})()</script>
<!-- ─── SETUP ─── -->
<div id="setup-screen">