Skip to content

Commit

Permalink
we can't use decode worker without createImageBitmap
Browse files Browse the repository at this point in the history
(Safari is useless)
  • Loading branch information
totaam committed May 4, 2022
1 parent 1fe2469 commit e18c18e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions html5/js/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
const XPRA_CLIENT_FORCE_NO_WORKER = false;
const CLIPBOARD_IMAGES = true;
const CLIPBOARD_EVENT_DELAY = 100;
const DECODE_WORKER = true;
const DECODE_WORKER = !!window.createImageBitmap;
const rencode_ok = rencode && rencode_selftest();
const SHOW_START_MENU = true;

Expand Down Expand Up @@ -63,10 +63,10 @@ XpraClient.prototype.init_settings = function() {
this.encoding = "auto";
//basic set of encodings:
//(more may be added after checking via the DecodeWorker)
this.supported_encodings = ["jpeg", "png", "png/P", "png/L", "rgb", "rgb32", "rgb24", "scroll", "webp", "void", "avif"];
this.supported_encodings = ["jpeg", "png", "png/P", "png/L", "rgb", "rgb32", "rgb24", "scroll", "void"];
//extra encodings we enable if validated via the decode worker:
//(we also validate jpeg and png as a sanity check)
this.check_encodings = this.supported_encodings;
this.check_encodings = ["jpeg", "png", "png/P", "png/L", "rgb", "rgb32", "rgb24", "scroll", "webp", "void", "avif"];
this.debug_categories = [];
this.start_new_session = null;
this.clipboard_enabled = false;
Expand Down

0 comments on commit e18c18e

Please sign in to comment.