mirror of
https://github.com/novnc/noVNC.git
synced 2026-05-30 08:59:38 +00:00
Fix web-socket-js: encode sent data across FABridge.
This commit is contained in:
@@ -86,7 +86,7 @@
|
||||
if (!this.__flash || this.readyState == WebSocket.CONNECTING) {
|
||||
throw "INVALID_STATE_ERR: Web Socket connection has not been established";
|
||||
}
|
||||
var result = this.__flash.send(data);
|
||||
var result = this.__flash.send(encodeURIComponent(data));
|
||||
if (result < 0) { // success
|
||||
return true;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user