MCPcopy Create free account
hub / github.com/Roy3838/Observer / demoUrl

Function demoUrl

app/src/utils/tutorialDemos.ts:47–54  ·  view source on GitHub ↗
(d: TutorialDemo)

Source from the content-addressed store, hash-verified

45export const demoTabTitle = (d: TutorialDemo): string => `${d.title} · Observer demo`;
46
47export const demoUrl = (d: TutorialDemo): string => {
48 // No ?outcome=: the demo ends the way its shown pair alerts on (demo-contract.js data-outcome).
49 // The desktop app captures the window natively, so the user never leaves the tab and comes back
50 // to start a ?tutorial= hold: there it runs from load with ?autostart= instead.
51 const mode = isTauri() ? 'autostart' : 'tutorial';
52 const q = new URLSearchParams({ [mode]: String(DEMO_RUN_MS), title: d.title });
53 return `${DEMO_ORIGIN}${d.file}?${q}`;
54};

Callers 2

TutorialDemoBannerFunction · 0.90
handleOpenFunction · 0.90

Calls 1

isTauriFunction · 0.90

Tested by

no test coverage detected