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

Commit

Permalink
support mobile.twitter.com
Browse files Browse the repository at this point in the history
  • Loading branch information
kirb committed Apr 16, 2013
1 parent 8e21c9e commit 33ffe9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tweak.xm
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
if ([[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.springboard"]) {
[[HBLibOpener sharedInstance] registerHandlerWithName:@"LinkOpener" block:^(NSURL *url) {
if ([url.scheme isEqualToString:@"http"] || [url.scheme isEqualToString:@"https"]) {
if ([url.host isEqualToString:@"twitter.com"]) {
if ([url.host isEqualToString:@"twitter.com"] || [url.host isEqualToString:@"mobile.twitter.com"]) {
if (url.pathComponents.count == 2) {
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"tweetbot://"]]) {
return [NSURL URLWithString:[@"tweetbot:///user_profile/" stringByAppendingString:[url.pathComponents objectAtIndex:1]]];
Expand Down

0 comments on commit 33ffe9d

Please sign in to comment.