Hacker News new | ask | show | jobs
by darcyparker 3987 days ago
Github uses flash for the 'copy to clipboard' button to copy an http or ssh url to the clipboard.
1 comments

Something I noticed after making my Flash click-to-activate a while back. That seems like a HUMONGOUS tunnel to create in order to allow copy to clipboard, and fairly irresponsible on GitHub's part.

What developer doesn't know how to copy to clipboard?

Github claims that the flash version is "currently the only reliable way to put data in the clipboard". This seems to indicate that they looked at the native browser option and found it unacceptable for their use case.

https://github.com/blog/1365-a-more-transparent-clipboard-bu...

That blog is from 2013. Github now does browser sniffing to see if it can use native APIs instead of flash: https://gist.github.com/jonrohan/81085b119d16cdd7868a