Skip to content

Commit

Permalink
offscreen toggle had no effect
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Sep 20, 2024
1 parent 69faf56 commit 345d3d2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions html5/js/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,9 +529,12 @@ class XpraClient {
this._do_connect(false);
return;
}
this.offscreen_api = DECODE_WORKER && XpraOffscreenWorker.isAvailable(this.ssl);
if (this.offscreen_api) {
this.set_encoding_option('video_max_size',[4096, 4096]);
// check that it is actually available:
this.offscreen_api = DECODE_WORKER && XpraOffscreenWorker.isAvailable(this.ssl);
if (this.offscreen_api) {
this.set_encoding_option('video_max_size',[4096, 4096]);
}
}
this.clog("we have webworker support");
// spawn worker that checks for a websocket
Expand Down

0 comments on commit 345d3d2

Please sign in to comment.