Skip to content

Commit

Permalink
#262 use v5 file-transfer caps
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Aug 26, 2023
1 parent 46820f3 commit 37e1c0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions html5/js/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -2705,11 +2705,11 @@ class XpraClient {
}

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

0 comments on commit 37e1c0d

Please sign in to comment.