summaryrefslogtreecommitdiffhomepage
path: root/src/core/protocol
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-07 00:54:08 +0900
committerAdam Malczewski <[email protected]>2026-06-07 00:54:08 +0900
commite09c8c84adc531bcb9406fe83db9c847ad4c5360 (patch)
treef73c2187439a9483e01c1e0c7b27b67410349f05 /src/core/protocol
parentc495fba00582c624065027ff598c14073faead33 (diff)
downloaddispatch-web-e09c8c84adc531bcb9406fe83db9c847ad4c5360.tar.gz
dispatch-web-e09c8c84adc531bcb9406fe83db9c847ad4c5360.zip
fix: blank page on non-localhost HTTP (secure-context crypto.randomUUID)
crypto.randomUUID() is secure-context-only — undefined on plain-HTTP non-localhost origins (e.g. http://PII_REDACTED_DEVICE_01:24204), so createAppStore threw during mount and nothing rendered. Add src/app/uuid.ts randomId(): prefer crypto.randomUUID when present, else build a v4 from crypto.getRandomValues (available in insecure contexts), else Math.random fallback. Use it for the conversation id. Verified: svelte-check 0/0, vitest 221, build ok.
Diffstat (limited to 'src/core/protocol')
0 files changed, 0 insertions, 0 deletions