nutella_framework 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -124,11 +124,17 @@ 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
- var prefix = value.slice(0, 7);
128
- if(prefix === 'http://') {
127
+ var prefix1 = value.slice(0, 7);
128
+ var prefix2 = value.slice(0, 8);
129
+ if(prefix1 === 'http://') {
129
130
  // do nothing
130
131
  } else {
131
- value = 'http://' + value;
132
+ if(prefix2 === 'https://') {
133
+ var value_ = value.slice(8, value.length);
134
+ value = 'http://' + value_;
135
+ } else {
136
+ value = 'http://' + value;
137
+ }
132
138
  }
133
139
  break;
134
140
  case 'iOS':