Refactor visitor ID creation function for improved readability
All checks were successful
Tests / Laravel tests (pull_request) Successful in 11m55s

This commit is contained in:
2026-06-03 23:51:30 +02:00
parent f85b596a66
commit 2f2b7866c6

View File

@@ -179,7 +179,8 @@
}
const visitorKey = 'cv_visitor_id';
const createVisitorId = () => window.crypto?.randomUUID?.() ?? `${Date.now()}-${Math.random().toString(36).slice(2)}`;
const createVisitorId = () => window.crypto?.randomUUID?.() ??
`${Date.now()}-${Math.random().toString(36).slice(2)}`;
let visitorId = createVisitorId();
try {