nutella_framework 0.6.2 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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':