Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do existence check on navigator.clipboard #3698

Merged
merged 1 commit into from
Sep 30, 2022

Conversation

rtibbles
Copy link
Member

Summary

Description of the change(s) you made

  • Adds existence checks everywhere that navigator.clipboard is referenced
  • Hides copy buttons and prevents the clipboard being used

Manual verification steps performed

  1. Checked that token copying still works in admin and non-admin

References

Fixes #3637

@rtibbles rtibbles requested review from bjester and marcellamaki and removed request for bjester September 29, 2022 01:55
Copy link
Member

@marcellamaki marcellamaki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Code makes sense, checked to ensure token copying still works, and also did a check with clipboardAvailable() manually set to false for copying from the token model and it is prevented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants