Refactor visitor ID creation function for improved readability
All checks were successful
Tests / Laravel tests (pull_request) Successful in 11m55s
All checks were successful
Tests / Laravel tests (pull_request) Successful in 11m55s
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user