sudodoki/copy-to-clipboard

execCommand is now obsolete

fungjj92 opened this issue ยท 2 comments

As of early 2020, the execCommand feature is now obsolete :(

The best next alternative seems to be on the DOM navigator object which is well-supported across browsers but requires HTTPS which makes it an indirect fit for local development. Another fairly current conversation.

Thanks for letting me know. Don't know what's the future of this project going to be given this news.

@sudodoki I would love to see an updated version of the package with the use of navigator.clipboard along with document.execCommand to preserve the compatibility with older browsers.
Please keep this project going, I could work on a PR if you agree.