diff options
author | Jose <jose@zeroc.com> | 2015-01-14 09:22:33 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2015-01-14 09:22:33 +0100 |
commit | 195454df0895051579cd83d6e64d2308a8f42c16 (patch) | |
tree | 6527548e026a929f410aef51ad467b26c4e8bf2c /js/demo/Ice/hello/browser/Client.js | |
parent | Fix another bug with hello demos. (diff) | |
download | ice-195454df0895051579cd83d6e64d2308a8f42c16.tar.bz2 ice-195454df0895051579cd83d6e64d2308a8f42c16.tar.xz ice-195454df0895051579cd83d6e64d2308a8f42c16.zip |
JavaScript updates to use gulp and add npm and bower packages
Diffstat (limited to 'js/demo/Ice/hello/browser/Client.js')
-rw-r--r-- | js/demo/Ice/hello/browser/Client.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/demo/Ice/hello/browser/Client.js b/js/demo/Ice/hello/browser/Client.js index 8ce88b9e2f5..71355056173 100644 --- a/js/demo/Ice/hello/browser/Client.js +++ b/js/demo/Ice/hello/browser/Client.js @@ -256,11 +256,11 @@ $("#mode").on("change", function(e) { var newMode = $(this).val(); - + var href; if(document.location.protocol === "http:" && (newMode === "twoway-secure" || newMode === "oneway-secure" || newMode === "oneway-batch-secure")) { - var href = document.location.protocol + "//" + document.location.host + + href = document.location.protocol + "//" + document.location.host + document.location.pathname + "?mode=" + newMode; href = href.replace("http", "https"); href = href.replace("8080", "9090"); @@ -269,7 +269,7 @@ $("#mode").on("change", else if (document.location.protocol === "https:" && (newMode === "twoway" || newMode === "oneway" || newMode === "oneway-batch")) { - var href = document.location.protocol + "//" + document.location.host + + href = document.location.protocol + "//" + document.location.host + document.location.pathname + "?mode=" + newMode; href = href.replace("https", "http"); href = href.replace("9090", "8080"); |