Skip to content

fix(clipboard): guard clipboard access on insecure context - #174

Open
techykaif wants to merge 4 commits into
StudentSuite:mainfrom
techykaif:fix/clipboard-insecure-context
Open

fix(clipboard): guard clipboard access on insecure context#174
techykaif wants to merge 4 commits into
StudentSuite:mainfrom
techykaif:fix/clipboard-insecure-context

Conversation

@techykaif

Copy link
Copy Markdown
Contributor

What this changes

Fixes #140 by checking for clipboard API support before attempting to write a shared link.

On browsers or origins where navigator.clipboard is unavailable, the UI now shows an error toast instead of throwing synchronously. HTTPS and localhost behavior remains unchanged.

Type of change

  • New public place(s)
  • New or updated benefit guide
  • New or updated resource link
  • Code or fix
  • Docs

Proof (required for new public places)

Not applicable. This PR does not add or modify any public places.

Checklist

  • The site hosts no copyrighted files; resource and paper changes are links only.
  • No em dashes in any copy.

@vercel

vercel Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

@techykaif is attempting to deploy a commit to the studentsuite 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.

bug: clipboard writes crash on insecure contexts (no existence check before navigator.clipboard)

1 participant