Skip to content

Add Clipboard API #401

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

Merged
merged 1 commit into from
Mar 17, 2020
Merged

Add Clipboard API #401

merged 1 commit into from
Mar 17, 2020

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants