Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
Added www. Fixing bug in ebay links.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Insull committed Oct 29, 2012
1 parent 4a2dbaf commit e5f7263
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0-12
1.0-13
2 changes: 1 addition & 1 deletion Tweak.xm
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
} else if ([[url host] isEqualToString:@"www.facebook.com"] && [[url pathComponents] count] == 2 && [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"fb://"]]) {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[@"fb://profileForLinkOpener/" stringByAppendingString:[[url pathComponents]objectAtIndex:1]]]];
return;
} else if ([[url host] hasPrefix:@"ebay.co"] && [[url pathComponents] count] == 4 && [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"ebay://"]]) {
} else if (([[url host] hasPrefix:@"ebay.co"] || [[url host] hasPrefix:@"www.ebay.co"]) && [[url pathComponents] count] == 4 && [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"ebay://"]]) {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[@"ebay://launch?itm=" stringByAppendingString:[[url pathComponents] objectAtIndex:3]]]];
return;
} else if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"vnd.youtube://"]]) {
Expand Down

0 comments on commit e5f7263

Please sign in to comment.