clipboard-copy
clipboard-copy copied to clipboard
not working on Mac safari 15.0
just used the example from the github readme
const copy = require('clipboard-copy')
button.addEventListener('click', function () {
copy('This is some cool text')
})
got a console error:
Unhandled Promise Rejection: NotAllowedError: The request is not allowed
I found this same issue too. @yossi-shasho did you find a solution or any work-around?
@makeitraina i haven't solved it. apparantly its bigger than us - apple blocked it in a deeper level thats not easily surpassable. we're changed the UI to a input the user can copy from.
@makeitraina i haven't solved it. apparantly its bigger than us - apple blocked it in a deeper level thats not easily surpassable. we're changed the UI to a input the user can copy from.
If anyone has any suggested code for how to make it work on Safari 15 I would be happy to add it and make a new release 🚀
FYI it works for me on Safari 15.5