Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Now using clipboard API + Added feedback #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

guaiamum
Copy link

@dovy
Copy link
Owner

dovy commented Sep 24, 2019

Will this work for all browsers? Don't want to code something that breaks the rest. ;)

@guaiamum
Copy link
Author

The clipboard API is quite recent, but should work on most main browsers. https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API#Browser_compatibility

I could add a polyfill with the old approach. How about make it into a Vue component that deals with it all?

@dovy
Copy link
Owner

dovy commented Sep 24, 2019

Looks like not IE at all. Let's do a try/catch.

https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API#Browser_compatibility

@guaiamum
Copy link
Author

Okay, don't you think is best to encapsulate this logic, Ui and styles into a Vue component, like this official plugin: https://github.com/vuejs/vuepress/tree/master/packages/%40vuepress/plugin-back-to-top?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request - Clipboard API
2 participants