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

Hide copy to clipboard if API is not supported on the browser #27

Merged
merged 2 commits into from
Jan 5, 2024

Conversation

lyqht
Copy link
Owner

@lyqht lyqht commented Jan 5, 2024

Closes #21


If API is not supported, the button is not shown.

CleanShot 2024-01-05 at 16 43 06@2x


To enable this feature on Firefox, you would have to go to about:config URL in your Firefox browser, and then switch on the clipboardItem API.

CleanShot 2024-01-05 at 16 39 58@2x

Copy link

vercel bot commented Jan 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
styled-qr-code-generator ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 5, 2024 8:43am

…utton based on browser support

feat(convertToImage.ts): add check for browser support for copying image to clipboard before executing copyImageToClipboard function
@lyqht lyqht force-pushed the fix-firefox-clipoard-issue branch from 829599c to 83a7a96 Compare January 5, 2024 08:43
@lyqht lyqht changed the title Fix firefox clipboard issue Hide copy to clipboard if API is not supported on the browser Jan 5, 2024
@lyqht lyqht merged commit 8f1aad5 into main Jan 5, 2024
2 checks passed
@lyqht lyqht deleted the fix-firefox-clipoard-issue branch January 5, 2024 08:45
itsAnuga pushed a commit to itsAnuga/styled-qr-code-generator that referenced this pull request Apr 23, 2024
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.

"Copy QR Code to clipboard" error in Firefox
1 participant