fix: add fallback UUID generator for crypto.randomUUID compatibility #50

Merged
shoko merged 1 commits from fix/crypto-randomuuid-fallback into main 2026-04-10 06:26:49 +02:00
Owner

Problem

is not available in all environments:

  • Older browsers
  • Non-secure contexts (HTTP instead of HTTPS)

This caused the error:

Solution

Added a fallback UUID v4 implementation that uses when is not available.

## Problem is not available in all environments: - Older browsers - Non-secure contexts (HTTP instead of HTTPS) This caused the error: ## Solution Added a fallback UUID v4 implementation that uses when is not available.
shoko added 1 commit 2026-04-10 06:19:55 +02:00
crypto.randomUUID() is not available in all environments (e.g., older browsers,
non-secure contexts). Added a fallback UUID v4 implementation.
han approved these changes 2026-04-10 06:26:29 +02:00
han left a comment
First-time contributor

lgtm

lgtm
shoko merged commit 21ce282cae into main 2026-04-10 06:26:49 +02:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shoko/randebu#50