Remove old, commented-out code.

This commit is contained in:
Michael Jumper 2017-04-17 13:29:33 -07:00
parent ba53a37d6f
commit 5adc47fab8

View File

@ -153,22 +153,6 @@
<!-- Init -->
<script type="text/javascript"> /* <![CDATA[ */
/*function getQueryParams(qs) {
qs = qs.split("+").join(" ");
var params = {}, tokens,
re = /[?&]?([^=]+)=([^&]*)/g;
while (tokens = re.exec(qs)) {
params[decodeURIComponent(tokens[1])]
= decodeURIComponent(tokens[2]);
}
return params;
}
window.query = getQueryParams(document.location.search);*/
// Adapted to 1.5
function getQueryParams(qs) {
qs = qs.split("+").join(" ");
@ -185,16 +169,11 @@
window.query = getQueryParams(document.location.href);
// Sanity check Guacamole JavaScript API version
// if (Guacamole.API_VERSION !== "0.9.1")
// GuacUI.Client.showStatus("Clear Your Cache", "An older version of Guacamole has been cached by your browser. Please clear your browser's cache and try again.");
// Start connect after control returns from onload (allow browser
// to consider the page loaded).
//else
window.onload = function() {
window.setTimeout(GuacUI.Client.connect, 10);
};
window.onload = function() {
window.setTimeout(GuacUI.Client.connect, 10);
};
/* ]]> */ </script>