mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-928 Always send error codes as numbers, not strings.
This commit is contained in:
@@ -492,7 +492,7 @@ Guacamole.Client = function(tunnel) {
|
||||
|
||||
var stream_index = parseInt(parameters[0]);
|
||||
var reason = parameters[1];
|
||||
var code = parameters[2];
|
||||
var code = parseInt(parameters[2]);
|
||||
|
||||
// Get stream
|
||||
var stream = output_streams[stream_index];
|
||||
@@ -718,7 +718,7 @@ Guacamole.Client = function(tunnel) {
|
||||
"error": function(parameters) {
|
||||
|
||||
var reason = parameters[0];
|
||||
var code = parameters[1];
|
||||
var code = parseInt(parameters[1]);
|
||||
|
||||
// Call handler if defined
|
||||
if (guac_client.onerror)
|
||||
|
Reference in New Issue
Block a user