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

Handle undefined URL values correctly.

parent 4b835bae
...@@ -32,11 +32,9 @@ ...@@ -32,11 +32,9 @@
<script> <script>
window.onload = function() { window.onload = function() {
var uri = new URI(window.location); var uri = new URI(window.location);
$('host').value = uri.getData("host"); $('host').value = uri.getData("host") || '';
$('port').value = uri.getData("port"); $('port').value = uri.getData("port") || '';
if (uri.getData("password")) { $('password').value = uri.getData("password") || '';
$('password').value = uri.getData("password");
}
} }
</script> </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