consolidation of auth mechanism

This commit is contained in:
overcuriousity
2025-07-24 12:30:59 +02:00
parent 32fca8a06f
commit 72bcc04309
5 changed files with 107 additions and 176 deletions

View File

@@ -19,7 +19,13 @@ const { title, description = 'CC24-Guide - A comprehensive directory of digital
<meta name="description" content={description}>
<title>{title} - CC24-Guide</title>
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<!-- CONSOLIDATED: Load theme script -->
<script src="/src/scripts/theme.js"></script>
<!-- CONSOLIDATED: Load client-side auth utilities -->
<script src="/src/scripts/client-auth.js"></script>
<script>
// Initialize theme immediately to prevent flash
(window as any).themeUtils?.initTheme();