DEV Community

loading...

Discussion on: How to implement copy and paste in a web application

Collapse
dev_hills profile image
Hillary Chibuko Author

yea this is awesome content...
The navigator.clipboard.readText returns a promise ....
so listening for a promise and pasting into the console after five seconds is great , because by then the promise most have resolved...
Kudos!!!