Fixed index.xhtml to work on be compatible with uds 1.5

This commit is contained in:
Adolfo Gómez 2014-07-28 11:17:46 +00:00
parent c0c8cbf66d
commit 0643e44125

View File

@ -155,7 +155,7 @@
<!-- Init --> <!-- Init -->
<script type="text/javascript"> /* <![CDATA[ */ <script type="text/javascript"> /* <![CDATA[ */
function getQueryParams(qs) { /*function getQueryParams(qs) {
qs = qs.split("+").join(" "); qs = qs.split("+").join(" ");
var params = {}, tokens, var params = {}, tokens,
@ -169,7 +169,21 @@
return params; return params;
} }
window.query = getQueryParams(document.location.search); window.query = getQueryParams(document.location.search);*/
// Adapted to 1.5
function getQueryParams(qs) {
qs = qs.split("+").join(" ");
var params = {}, re=/[^?]*\?([^&]*)&(.*)/;
params.data = res[1]
params.data = res[2]
return params;
}
window.query = getQueryParams(document.location);
// Sanity check Guacamole JavaScript API version // Sanity check Guacamole JavaScript API version
// if (Guacamole.API_VERSION !== "0.9.1") // if (Guacamole.API_VERSION !== "0.9.1")