projects
/
guacamole-common-js.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add error for status code of 0.
[guacamole-common-js.git]
/
src
/
main
/
resources
/
tunnel.js
diff --git
a/src/main/resources/tunnel.js
b/src/main/resources/tunnel.js
index
a06c2b4
..
39709d8
100644
(file)
--- a/
src/main/resources/tunnel.js
+++ b/
src/main/resources/tunnel.js
@@
-208,6
+208,7
@@
Guacamole.HTTPTunnel = function(tunnelURL) {
var status = xmlhttprequest.status;
// Special cases
+ if (status == 0) return "Disconnected";
if (status == 200) return "Success";
if (status == 403) return "Unauthorized";
if (status == 404) return "Connection does not exist";