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

"Copy QR Code to clipboard" error in Firefox #21

Closed
jshwlkr opened this issue Oct 21, 2023 · 1 comment · Fixed by #27
Closed

"Copy QR Code to clipboard" error in Firefox #21

jshwlkr opened this issue Oct 21, 2023 · 1 comment · Fixed by #27
Labels
bug Something isn't working

Comments

@jshwlkr
Copy link

jshwlkr commented Oct 21, 2023

Seeing an error in Firefox and the copy does not work.

Uncaught (in promise) ReferenceError: ClipboardItem is not defined
    UL https://styled-qr-code-generator.vercel.app/assets/index-be8c1718.js:28
    promise callback*UL https://styled-qr-code-generator.vercel.app/assets/index-be8c1718.js:28
    de https://styled-qr-code-generator.vercel.app/assets/index-be8c1718.js:28
    Rt https://styled-qr-code-generator.vercel.app/assets/index-be8c1718.js:1
    at https://styled-qr-code-generator.vercel.app/assets/index-be8c1718.js:1
    n https://styled-qr-code-generator.vercel.app/assets/index-be8c1718.js:1

@lyqht
Copy link
Owner

lyqht commented Jan 5, 2024

hi @jshwlkr sorry for the long delay, haven't got time to work on side projects for a while, I tried looking around for a while, but it seems that Firefox doesn't have great support for Clipboard API. They do have an option for you to manually turn it on though if you want to.

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

After that it should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants