Commit 85b7a7d4 authored by Joel Martin's avatar Joel Martin

Handle undefined URL values correctly.

parent 4b835bae
......@@ -32,11 +32,9 @@
<script>
window.onload = function() {
var uri = new URI(window.location);
$('host').value = uri.getData("host");
$('port').value = uri.getData("port");
if (uri.getData("password")) {
$('password').value = uri.getData("password");
}
$('host').value = uri.getData("host") || '';
$('port').value = uri.getData("port") || '';
$('password').value = uri.getData("password") || '';
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment