nutella_framework 0.4.31 → 0.4.32

Sign up to get free protection for your applications and to get access to all the features.
@@ -124,7 +124,12 @@ var Channel = React.createClass({
124
124
  var value = this.refs['textFieldUrl' + this.props.channelId].getValue();
125
125
  switch(this.props.channel.type) {
126
126
  case 'web':
127
- value = 'http://' + value;
127
+ var prefix = value.slice(0, 7);
128
+ if(prefix === 'http://') {
129
+ // do nothing
130
+ } else {
131
+ value = 'http://' + value;
132
+ }
128
133
  break;
129
134
  case 'iOS':
130
135
  value = value + '://';