Closed thanhnguyen2187 closed 9 months ago
It is because navigator.clipboard.read
is not supported in Firefox yet.
However, while navigator.clipboard.readText() and navigator.clipboard.writeText() work on all browsers, navigator.clipboard.read() and navigator.clipboard.write() do not. For example, on Firefox at the time of writing, navigator.clipboard.read() and navigator.clipboard.write() are not fully implemented...
Source: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Interact_with_the_clipboard
EDIT: the error is with navigator.clipboard.readText
.
It might conflict with #46, where we also want to paste an image sometimes.
Solution: add the "holding down" interaction to the add snippet button.
Toggling these values of Firefox's about:config
works:
dom.events.testing.asyncClipboard
dom.events.asyncClipboard.readText