mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 13:41:21 +00:00
Working multiple-config login stub.
This commit is contained in:
@@ -91,16 +91,6 @@
|
||||
new Guacamole.HTTPTunnel("tunnel")
|
||||
);
|
||||
|
||||
try {
|
||||
|
||||
// Connect client
|
||||
guac.connect(data);
|
||||
|
||||
}
|
||||
catch (e) {
|
||||
// TODO: Handle exception ...
|
||||
}
|
||||
|
||||
var menu = document.getElementById("menu");
|
||||
var logo = document.getElementById("status-logo");
|
||||
|
||||
@@ -325,6 +315,23 @@
|
||||
guac.sendKeyEvent(0, KEYSYM_CTRL);
|
||||
}
|
||||
|
||||
|
||||
try {
|
||||
|
||||
// Get ID
|
||||
var url = window.location.href;
|
||||
var query = url.indexOf("?");
|
||||
var id = url.substring(query+1);
|
||||
|
||||
// Connect client
|
||||
guac.connect("id=" + encodeURIComponent(id));
|
||||
|
||||
}
|
||||
catch (e) {
|
||||
// TODO: Handle exception ...
|
||||
}
|
||||
|
||||
|
||||
/* ]]> */ </script>
|
||||
|
||||
</body>
|
||||
|
Reference in New Issue
Block a user