Skip to content

Commit

Permalink
Fix: conditions to detect custom url schemes had to be in AND, not OR
Browse files Browse the repository at this point in the history
  • Loading branch information
Xm4s committed May 21, 2012
1 parent 3b016a5 commit aa75c7d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Classes/RootViewController.m
Expand Up @@ -1163,7 +1163,7 @@ - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)

return NO;
}
else if (![[url scheme] isEqualToString:@""] || ![[url scheme] isEqualToString:@"http"] || ![[url scheme] isEqualToString:@"https"])
else if (![[url scheme] isEqualToString:@""] && ![[url scheme] isEqualToString:@"http"] && ![[url scheme] isEqualToString:@"https"])
{
[[UIApplication sharedApplication] openURL:url];
return NO;
Expand Down Expand Up @@ -1221,7 +1221,6 @@ - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)
}

NSLog(@" Link doesn't contain param \"%@\" --> open link in page", URL_OPEN_EXTERNAL);

return YES;
}
}
Expand Down

0 comments on commit aa75c7d

Please sign in to comment.