Fix latency test.

For echo/latency tests default to current host:port or URL.
This commit is contained in:
Joel Martin
2012-04-25 13:44:37 -05:00
parent 9a88f1800c
commit 7a4dbad3e8
4 changed files with 173 additions and 5 deletions
+2 -2
View File
@@ -140,8 +140,8 @@
window.onload = function() {
console.log("onload");
var url = document.location.href;
$D('host').value = (url.match(/host=([^&#]*)/) || ['',''])[1];
$D('port').value = (url.match(/port=([^&#]*)/) || ['',''])[1];
$D('host').value = (url.match(/host=([^&#]*)/) || ['',window.location.hostname])[1];
$D('port').value = (url.match(/port=([^&#]*)/) || ['',window.location.port])[1];
}
</script>