Skip to content

Handle Clipboard errors #160

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

Closed
CarlosNZ opened this issue Jan 29, 2025 · 0 comments · Fixed by #162
Closed

Handle Clipboard errors #160

CarlosNZ opened this issue Jan 29, 2025 · 0 comments · Fixed by #162
Assignees
Labels
enhancement New feature or request should do

Comments

@CarlosNZ
Copy link
Owner

As discussed in #159, the navigator.clipboard can sometimes be undefined, or possibly fail for other reasons.

Will update the handleCopy function to check for the success/failure of the clipboard operation, and pass the result to the enableClipboard function, which will provide a mechanism for users to add their own clipboard handling/error reporting if required.

@CarlosNZ CarlosNZ added enhancement New feature or request should do labels Jan 29, 2025
@CarlosNZ CarlosNZ self-assigned this Jan 29, 2025
CarlosNZ added a commit that referenced this issue Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request should do
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant