mirror of
https://github.com/shuaiplus/nodewarden.git
synced 2026-06-20 13:00:39 +00:00
Added the preload demo experience feature to support presentation mode
This commit is contained in:
+6
-1
@@ -30,7 +30,7 @@ import {
|
||||
parseSignalRTextFrames,
|
||||
readInviteCodeFromUrl,
|
||||
} from '@/lib/app-support';
|
||||
import { preloadAuthenticatedWorkspace } from '@/lib/app-preload';
|
||||
import { preloadAuthenticatedWorkspace, preloadDemoExperience } from '@/lib/app-preload';
|
||||
import {
|
||||
bootstrapAppSession,
|
||||
type CompletedLogin,
|
||||
@@ -960,6 +960,11 @@ export default function App() {
|
||||
staleTime: 30_000,
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
if (!IS_DEMO_MODE) return;
|
||||
return preloadDemoExperience();
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (IS_DEMO_MODE) return;
|
||||
if (phase !== 'app' || !vaultInitialDecryptDone) return;
|
||||
|
||||
Reference in New Issue
Block a user