Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

Copy Button don't work on Firefox #16

Open
Gamer226 opened this issue May 24, 2023 · 2 comments
Open

Copy Button don't work on Firefox #16

Gamer226 opened this issue May 24, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@Gamer226
Copy link

Copy button works fine on chrome, but does nothing and gives error on Firefox.

video.mp4
@TheOriginalAyaka
Copy link
Owner

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.

@TheOriginalAyaka TheOriginalAyaka added the bug Something isn't working label May 24, 2023
@12beesinatrenchcoat
Copy link

12beesinatrenchcoat commented Jun 15, 2023

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. (^^;)

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

No branches or pull requests

3 participants