Skip to content

Conversation

@RRRadicalEdward
Copy link
Collaborator

@RRRadicalEdward RRRadicalEdward commented Sep 21, 2025

await this.remoteDesktopService.onClipboardChanged(...)

Consumes the clipboard data we pass, so we need to clone the data to prevent this.lastSentClipboardData from being null.

```js
await this.remoteDesktopService.onClipboardChanged(...)
```
Consumes the clipboard data we pass, so we need to clone the data, to
prevent `this.lastSentClipboardData` being null.
@RRRadicalEdward RRRadicalEdward force-pushed the fix-lastSentClipboardData-be-null branch from 4ca8e25 to e44d4dc Compare September 21, 2025 14:03
@github-actions
Copy link

github-actions bot commented Sep 21, 2025

Coverage Report 🤖 ⚙️

Past:
Total lines: 29000
Covered lines: 17725 (61.12%)

New:
Total lines: 29000
Covered lines: 17730 (61.14%)

Diff: +0.02%

[this comment will be updated automatically]

@RRRadicalEdward RRRadicalEdward self-assigned this Sep 22, 2025
@CBenoit
Copy link
Member

CBenoit commented Sep 22, 2025

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?

@RRRadicalEdward
Copy link
Collaborator Author

os

Make sense. Let me do it

@RRRadicalEdward
Copy link
Collaborator Author

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?

Done. Could you check it out?

@CBenoit CBenoit enabled auto-merge (squash) September 24, 2025 08:40
@CBenoit CBenoit merged commit 6127e13 into master Sep 24, 2025
10 checks passed
@CBenoit CBenoit deleted the fix-lastSentClipboardData-be-null branch September 24, 2025 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants