(user?: AppUser | null)
| 83 | * Generate the script tag to inject app config into HTML. |
| 84 | */ |
| 85 | export function getAppConfigScript(user?: AppUser | null): string { |
| 86 | const config = buildAppConfig(user); |
| 87 | return `<script>window.__APP_CONFIG__=${JSON.stringify(config)};</script>`; |
| 88 | } |
| 89 | |
| 90 | /** |
| 91 | * Inline script that buffers errors before PostHog loads. |
no test coverage detected