Commit e4811e8
fix: fallback for crypto.randomUUID in non-secure HTTP contexts
crypto.randomUUID() is only available over HTTPS or localhost.
Accessing the app via plain HTTP on a local IP (e.g. 192.168.x.x)
caused an uncaught TypeError at module load time, crashing the app
and resulting in a black screen.
Added a Math.random() fallback for non-secure contexts.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent f3a5077 commit e4811e8
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
| |||
0 commit comments