Skip to content

Commit

Permalink
don't send clipboard packets to servers that don't want them
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Oct 3, 2024
1 parent bffd5c2 commit 20094da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions html5/js/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -2556,6 +2556,9 @@ class XpraClient {
this._connection_change();
}

// don't send clipboard packets to servers that don't want them:
this.clipboard_enabled = Boolean(hello["clipboard"] || false);

// file transfer attributes:
this.remote_file_size_limit = hello["max-file-size"];
this.remote_file_chunks = Math.max(0, Math.min(this.remote_file_size_limit, hello["file-chunks"] || 0));
Expand Down

0 comments on commit 20094da

Please sign in to comment.