Skip to content

Guard persistent user choices storage access#345

Open
Adarsh-9182 wants to merge 1 commit into
livekit-examples:mainfrom
Adarsh-9182:guard-persistent-user-choices
Open

Guard persistent user choices storage access#345
Adarsh-9182 wants to merge 1 commit into
livekit-examples:mainfrom
Adarsh-9182:guard-persistent-user-choices

Conversation

@Adarsh-9182

Copy link
Copy Markdown

Summary

  • Check whether localStorage is accessible before enabling persistent user choices.
  • Preserve saved device preferences in normal browser contexts.
  • Avoid runtime SecurityError crashes in contexts where storage access is denied.

Verification

  • ./node_modules/.bin/tsc --noEmit
  • ./node_modules/.bin/prettier --check hooks/agents-ui/use-agent-control-bar.ts

Refs #339

@vercel

vercel Bot commented Jul 6, 2026

Copy link
Copy Markdown

@zebyarb is attempting to deploy a commit to the LiveKit Team on Vercel.

A member of the Team first needs to authorize it.

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