summaryrefslogtreecommitdiff
path: root/chromium/ui/webui/resources/cr_components/chromeos/network/network_proxy_input.js
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/webui/resources/cr_components/chromeos/network/network_proxy_input.js')
-rw-r--r--chromium/ui/webui/resources/cr_components/chromeos/network/network_proxy_input.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/chromium/ui/webui/resources/cr_components/chromeos/network/network_proxy_input.js b/chromium/ui/webui/resources/cr_components/chromeos/network/network_proxy_input.js
index 6dc6323608e..68179558267 100644
--- a/chromium/ui/webui/resources/cr_components/chromeos/network/network_proxy_input.js
+++ b/chromium/ui/webui/resources/cr_components/chromeos/network/network_proxy_input.js
@@ -53,8 +53,9 @@ Polymer({
*/
onValueChange_: function() {
let port = parseInt(this.value.Port, 10);
- if (isNaN(port))
+ if (isNaN(port)) {
port = 80;
+ }
this.value.Port = port;
this.fire('proxy-change', {value: this.value});
}