Skip to content

Fallback for randomUUID when not available (non secure context) - #472

Merged
michaeltaranto merged 5 commits into
seek-oss:masterfrom
Marcosld:master
Feb 4, 2026
Merged

michaeltaranto merged 5 commits into
seek-oss:masterfrom
Marcosld:master

Conversation

@Marcosld

@Marcosld Marcosld commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

Hello! First of all thanks for the awesome tool!

When updating to the latest version of playroom we've come to an error when trying to use it over the LAN network, in my case: http://192.168.1.36:9000/#?code=N4Igxg9gJgpiBcIA8AhAhgJwAQHoB8IAvkA. randomUUID function used to generate playroom ids is only available in secure contexts or trustworthy origins, so an error is thrown.

I created this little PR where we fallback to a uuidv4 generator function when randomUUID is not available. I used this implementation because I didn't dig much into your code, but perhaps an easier one could be used.

Issue: #473

Before:
image

After:
image

Hoping to get your feedback soon!

@Marcosld
Marcosld requested a review from a team as a code owner January 15, 2026 12:31
@changeset-bot

changeset-bot Bot commented Jan 15, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 33da27d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
playroom Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Comment thread src/contexts/StoreContext.tsx Outdated
Comment thread src/contexts/StoreContext.tsx Outdated
@michaeltaranto
michaeltaranto merged commit f8d7aae into seek-oss:master Feb 4, 2026
2 checks passed
@seek-oss-ci seek-oss-ci mentioned this pull request Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants