Index: chrome/browser/resources/settings/internet_page/network_proxy_input.js |
diff --git a/chrome/browser/resources/settings/internet_page/network_proxy_input.js b/chrome/browser/resources/settings/internet_page/network_proxy_input.js |
index 6093bd4eba4eedad1a02f922560a9afcf68d1c05..9d807dc71f0738aa2fb4aa134ec7460f29b4e964 100644 |
--- a/chrome/browser/resources/settings/internet_page/network_proxy_input.js |
+++ b/chrome/browser/resources/settings/internet_page/network_proxy_input.js |
@@ -17,7 +17,7 @@ Polymer({ |
*/ |
editable: { |
type: Boolean, |
- value: false |
+ value: false, |
}, |
/** |
@@ -25,7 +25,7 @@ Polymer({ |
*/ |
label: { |
type: String, |
- value: 'Proxy' |
+ value: 'Proxy', |
}, |
/** |
@@ -34,8 +34,10 @@ Polymer({ |
*/ |
value: { |
type: Object, |
- value: function() { return {Host: '', Port: 80}; }, |
- notify: true |
+ value: function() { |
+ return {Host: '', Port: 80}; |
+ }, |
+ notify: true, |
}, |
}, |
@@ -44,6 +46,8 @@ Polymer({ |
* @private |
*/ |
onValueChange_: function() { |
+ if (!this.value.Host) |
+ return; |
var port = parseInt(this.value.Port, 10); |
if (isNaN(port)) |
port = 80; |