Skip to content

Commit

Permalink
Modifies link-input for valid urls
Browse files Browse the repository at this point in the history
  • Loading branch information
dilpreetsio committed Aug 1, 2017
1 parent 61a884e commit da22979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/widgets/forms/link-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default Component.extend({
let proto = this.get('protocol');
if (add.includes('http://') || add.includes('https://')) {
let temp = add.split('://');
proto = `${temp[0]}://`;
proto = temp[0];
add = temp[1];
}
if (add.includes('www.')) {
Expand Down

0 comments on commit da22979

Please sign in to comment.