]> git.proxmox.com Git - novnc-pve.git/blob - debian/patches/0013-Revert-Remove-the-default-value-of-wsProtocols.patch
upgrade novnc and patches to 1.3.0
[novnc-pve.git] / debian / patches / 0013-Revert-Remove-the-default-value-of-wsProtocols.patch
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 Date: Mon, 17 May 2021 09:43:35 +0200
4 Subject: [PATCH] Revert "Remove the default value of wsProtocols"
5
6 This reverts commit c912230309806aacbae4295faf7ad6406da97617.
7
8 We very-much depend on the WS protocol default of 'binary', for now
9 lets just revert it here, albeit it could be externally set..
10
11 Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
12 ---
13 core/rfb.js | 3 ++-
14 docs/API.md | 3 +--
15 2 files changed, 3 insertions(+), 3 deletions(-)
16
17 diff --git a/core/rfb.js b/core/rfb.js
18 index ec75610..96617b9 100644
19 --- a/core/rfb.js
20 +++ b/core/rfb.js
21 @@ -91,7 +91,8 @@ export default class RFB extends EventTargetMixin {
22 this._rfbCredentials = options.credentials || {};
23 this._shared = 'shared' in options ? !!options.shared : true;
24 this._repeaterID = options.repeaterID || '';
25 - this._wsProtocols = options.wsProtocols || [];
26 + this._wsProtocols = options.wsProtocols || ['binary'];
27 + this._showDotCursor = options.showDotCursor || false;
28
29 // Internal state
30 this._rfbConnectionState = '';
31 diff --git a/docs/API.md b/docs/API.md
32 index aa5aea7..623d685 100644
33 --- a/docs/API.md
34 +++ b/docs/API.md
35 @@ -195,8 +195,7 @@ connection to a specified VNC server.
36 encountered.
37
38 `wsProtocols`
39 - - An `Array` of `DOMString`s specifying the sub-protocols to use
40 - in the WebSocket connection. Empty by default.
41 + - Protocols to use in the WebSocket connection, the default is: ['binary']
42
43 #### connect
44