Open Gamer226 opened 1 year ago
Hi there, thanks for reporting this issue, I have checked and it seems that Firefox is not fully compatible with the clipboard API (https://developer.mozilla.org/en-US/docs/Web/API/ClipboardItem). I'll look for an alternate solution.
Copying to image exists in Firefox, but is currently held behind a flag.
If you really want to, go to about:config
and set the flag dom.events.asyncClipboard.clipboardItem
to true.
In the interim, it might be nice to have a little notice saying if copying was successful or not.
(It does seem Firefox supports the old, deprecated way of copying stuff through Document.execCommand()? I'll look into it, if you don't mind.) I couldn't get this to work. (^^;)
Copy button works fine on chrome, but does nothing and gives error on Firefox.
https://github.com/TheOriginalAyaka/sekai-stickers/assets/77015143/f51fa735-3848-4fba-8afb-552e3df7ad1b