summaryrefslogtreecommitdiff
path: root/UICaboodle/BrowserView.m
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2008-12-10 14:33:40 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:09:18 +0000
commitad5d065e7ddce3624a386d97074adea63fe48ca9 (patch)
tree157ec88422d37b339919fd671356c2e7451fa604 /UICaboodle/BrowserView.m
parent0adc554ba6925144bab4bcd29fd2371a032cb458 (diff)
Fixed Twitter.
Diffstat (limited to 'UICaboodle/BrowserView.m')
-rw-r--r--UICaboodle/BrowserView.m12
1 files changed, 11 insertions, 1 deletions
diff --git a/UICaboodle/BrowserView.m b/UICaboodle/BrowserView.m
index 93e253b..8734fe5 100644
--- a/UICaboodle/BrowserView.m
+++ b/UICaboodle/BrowserView.m
@@ -801,7 +801,17 @@
NSString *application = package == nil ? @"Cydia" : [NSString
stringWithFormat:@"Cydia/%@",
[package installed]
- ]; [webview setApplicationNameForUserAgent:application];
+ ];
+
+ if (Build_ != nil)
+ application = [NSString stringWithFormat:@"Mobile/%@ %@", Build_, application];
+
+ /* XXX: lookup application directory? */
+ /*if (NSDictionary *safari = [NSDictionary dictionaryWithContentsOfFile:@"/Applications/MobileSafari.app/Info.plist"])
+ if (NSString *version = [safari objectForKey:@"SafariProductVersion"])
+ application = [NSString stringWithFormat:@"Version/%@ %@", version, application];*/
+
+ [webview setApplicationNameForUserAgent:application];
indirect_ = [[IndirectDelegate alloc] initWithDelegate:self];