(event: Parameters<NonNullable<StudioProps['onEvent']>>[0])
| 43 | }) |
| 44 | |
| 45 | const onEvent = (event: Parameters<NonNullable<StudioProps['onEvent']>>[0]) => { |
| 46 | void fetch('/telemetry', { |
| 47 | body: JSON.stringify(event), |
| 48 | method: 'POST', |
| 49 | }).catch(() => { |
| 50 | // noop |
| 51 | }) |
| 52 | } |
| 53 | |
| 54 | ;(window as Window & { __PVCE__?: boolean }).__PVCE__ = true |
| 55 |