mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
Code cleanup.
This commit is contained in:
@@ -219,7 +219,7 @@
|
|||||||
// Disconnect on close
|
// Disconnect on close
|
||||||
window.onunload = function() {
|
window.onunload = function() {
|
||||||
guac.disconnect();
|
guac.disconnect();
|
||||||
}
|
};
|
||||||
|
|
||||||
// Handle clipboard events
|
// Handle clipboard events
|
||||||
var clipboardElement = document.getElementById("clipboard");
|
var clipboardElement = document.getElementById("clipboard");
|
||||||
@@ -325,9 +325,7 @@
|
|||||||
try {
|
try {
|
||||||
|
|
||||||
// Get ID
|
// Get ID
|
||||||
var url = window.location.href;
|
var id = window.location.search.substring(1);
|
||||||
var query = url.indexOf("?");
|
|
||||||
var id = url.substring(query+1);
|
|
||||||
|
|
||||||
// Connect client
|
// Connect client
|
||||||
guac.connect("id=" + id);
|
guac.connect("id=" + id);
|
||||||
|
Reference in New Issue
Block a user