Skip to content

Commit a40008c

Browse files
committed
#335 avoid errors when there is no canvas
1 parent c22e15b commit a40008c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html5/js/Client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1735,7 +1735,7 @@ class XpraClient {
17351735
this.set_focus(win);
17361736
}
17371737

1738-
if (window.cursor_lock) {
1738+
if (window.cursor_lock && win.canvas) {
17391739
$("#cursor-lock-button").removeClass("icon-paused");
17401740
win.canvas.requestPointerLock();
17411741
}

0 commit comments

Comments
 (0)