-
Notifications
You must be signed in to change notification settings - Fork 156
fix(web): fix this.lastSentClipboardData being null
#992
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
Conversation
```js await this.remoteDesktopService.onClipboardChanged(...) ``` Consumes the clipboard data we pass, so we need to clone the data, to prevent `this.lastSentClipboardData` being null.
4ca8e25 to
e44d4dc
Compare
Coverage Report 🤖 ⚙️Past: New: Diff: +0.02% [this comment will be updated automatically] |
|
I think a better approach is to not consume the data in the callback, and to expose a more JavaScript friendly API in this case. How does that sound to you? |
Make sense. Let me do it |
Done. Could you check it out? |
Consumes the clipboard data we pass, so we need to clone the data to prevent
this.lastSentClipboardDatafrom being null.