(d: TutorialDemo)
| 45 | export const demoTabTitle = (d: TutorialDemo): string => `${d.title} · Observer demo`; |
| 46 | |
| 47 | export 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 | }; |
no test coverage detected