fix: replace crypto.randomUUID with fallback for non-HTTPS contexts
Some checks failed
CI / cleanup-branch (push) Has been skipped
CI / build (push) Successful in 52s
CI / deploy (push) Has been cancelled
CI / deploy-feature (push) Has been cancelled
CI / docker (push) Has been cancelled

crypto.randomUUID() requires a secure context (HTTPS). Since the server
may be accessed via HTTP, use a timestamp + random string ID instead.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-03-26 19:46:32 +01:00
parent 82b47f4364
commit 23b23bbb66

View File

@@ -521,7 +521,7 @@ export default function RouteDetail() {
function saveTap() {
if (!config.data) return;
const tap: TapDefinition = {
tapId: editingTap?.tapId || crypto.randomUUID(),
tapId: editingTap?.tapId || `tap-${Date.now()}-${Math.random().toString(36).slice(2, 10)}`,
processorId: tapProcessor,
target: tapTarget,
expression: tapExpression,