Skip to content

Commit c858d46

Browse files
committed
xpra servers will move to using options for non-binary data
1 parent 3882cf9 commit c858d46

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

html5/js/Window.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,8 +1365,11 @@ class XpraWindow {
13651365
paint_error("h264 decoding is only supported via the decode workers");
13661366
this.may_paint_now();
13671367
} else if (coding == "scroll") {
1368-
for (let index = 0, stop = img_data.length; index < stop; ++index) {
1369-
const scroll_data = img_data[index];
1368+
// newer servers use options,
1369+
// older ones overload the image data:
1370+
const scrolls = options["scroll"] || img_data;
1371+
for (let index = 0, stop = scrolls.length; index < stop; ++index) {
1372+
const scroll_data = scrolls[index];
13701373
this.debug("draw", "scroll", index, ":", scroll_data);
13711374
const sx = scroll_data[0];
13721375
const sy = scroll_data[1];

0 commit comments

Comments
 (0)