Comments (6)
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
from clipboard-copy.
I found this same issue too. @yossi-shasho did you find a solution or any work-around?
from clipboard-copy.
@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.
from clipboard-copy.
@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.
from clipboard-copy.
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 🚀
from clipboard-copy.
FYI it works for me on Safari 15.5
from clipboard-copy.
Related Issues (20)
- Change README to a Promise HOT 1
- Source for empty promise rejection? HOT 1
- Thanks for this HOT 1
- Does not work on Safari HOT 2
- The npm version has the old readme HOT 1
- Typescript definition issue HOT 9
- Copy not working in chrome version 72 HOT 2
- Copy not working on non-https dev server HOT 1
- The latest version (3.0.0) is not working in Cordova on Android 7 HOT 1
- Unhandled Promise Rejection: undefined HOT 5
- Not working in android opera browser HOT 1
- Doesn't work on Fb Messenger/Instagram in-app browser on Android device HOT 1
- Line breaks (\n) are not working on safari HOT 1
- Not working inside cross-domain iframe HOT 4
- DOMException is not supported by Edge HOT 1
- v4 breaks IE11 compatibility HOT 1
- Transpile to es5 to support older devices HOT 4
- Paste support?
- Can't copy arabic text to the top position
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clipboard-copy.