summaryrefslogtreecommitdiff
path: root/UICaboodle/BrowserView.m
diff options
context:
space:
mode:
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];