lyqht / mini-qr

Generate customized qr codes easily 👾
https://mini-qr-code-generator.vercel.app
GNU General Public License v3.0
529 stars 73 forks source link

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

Closed jshwlkr closed 9 months ago

jshwlkr commented 1 year ago

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 commented 9 months ago

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.