Skip to content

Conversation

@kindoflew
Copy link

PR for #17.
I ended up having each half of try/catch dispatch a 'copysuccess' or 'copyerror' event so elements can listen for these specific actions instead of any copy events on the page.

Also, I tried and failed implementing tests for this and after looking more into JSDOM I think it's because navigator.clipboard doesn't exist in their code and I'm not yet sure how to mock global methods like that (learning in public 😅). I'm new to open source, and programming in general, so I really appreciate you taking time out of your day for this. Thanks!

@swyxio
Copy link
Owner

swyxio commented Feb 4, 2022

responded in #17

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.

2 participants