Skip to content

Commit

Permalink
fix boolean expression erro regarding protocol auto-completion
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciro S. Costa committed Apr 18, 2014
1 parent fdab46a commit 245e53c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/app.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
console.log("dahora a asd sd hsiudashiuasdhiudsahdssaddsdasjiuss");
alert('wow');
console.log("dasiuhadsuih");
console.log("dasiuhadsuih"); console.log("dshaiuhads");
2 changes: 1 addition & 1 deletion src/cli-questions.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function getResponseFromUser () {
response.webpage = prompt(ini + 'Target webpage: '.bold);
var webpage = url.parse(response.webpage);

if (webpage.protocol !== 'http:' || webpage.protocol !== 'https:') {
if (webpage.protocol !== 'http:' && webpage.protocol !== 'https:') {
response.webpage = 'http://' + response.webpage;
}

Expand Down

0 comments on commit 245e53c

Please sign in to comment.