created a demo mode for the guest pwa

This commit is contained in:
Codex Agent
2025-11-17 12:24:14 +01:00
parent 167734f87a
commit 2978b0ef15
11 changed files with 671 additions and 17 deletions

View File

@@ -6,8 +6,12 @@ import '../../css/app.css';
import { initializeTheme } from '@/hooks/use-appearance';
import { ToastProvider } from './components/ToastHost';
import { LocaleProvider } from './i18n/LocaleContext';
import { enableGuestDemoMode, shouldEnableGuestDemoMode } from './demo/demoMode';
initializeTheme();
if (shouldEnableGuestDemoMode()) {
enableGuestDemoMode();
}
const rootEl = document.getElementById('root')!;
// Register a minimal service worker for background sync (best-effort)