Skip to content

Conversation

@exoego
Copy link
Contributor

@exoego exoego commented Mar 13, 2020

https://developer.mozilla.org/en-US/docs/Web/API/Clipboard

This PR adds Clipboard trait.
It's instance can be obtained via Navigator.clipboard property.

* MDN
*/
@js.native
trait NavigatorClipboard extends js.Object {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't find any evidence that this interface exists on its own. It seems that def clipboard should just be directly added in Navigator.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, added def clipboard directly in Navigator class.

Copy link
Member

@sjrd sjrd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@sjrd sjrd merged commit 8061334 into scala-js:master Mar 17, 2020
@exoego exoego deleted the clipboard branch March 17, 2020 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants