summaryrefslogtreecommitdiff
path: root/Cydia.mm
diff options
context:
space:
mode:
Diffstat (limited to 'Cydia.mm')
-rw-r--r--Cydia.mm11
1 files changed, 6 insertions, 5 deletions
diff --git a/Cydia.mm b/Cydia.mm
index 239c584..f00d4d7 100644
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -3810,17 +3810,18 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
WebView *webview([webview_ webView]);
Package *package([[Database sharedInstance] packageWithName:@"cydia"]);
+
NSString *application = package == nil ? @"Cydia" : [NSString
stringWithFormat:@"Cydia/%@",
[package installed]
];
- if (Product_ != nil)
- application = [NSString stringWithFormat:@"%@ Version/%@", application, Product_];
- if (Build_ != nil)
- application = [NSString stringWithFormat:@"%@ Mobile/%@", application, Build_];
if (Safari_ != nil)
- application = [NSString stringWithFormat:@"%@ Safari/%@", application, Safari_];
+ application = [NSString stringWithFormat:@"Safari/%@ %@", application, Safari_];
+ if (Build_ != nil)
+ application = [NSString stringWithFormat:@"Mobile/%@ %@", application, Build_];
+ if (Product_ != nil)
+ application = [NSString stringWithFormat:@"Version/%@ %@", application, Product_];
[webview setApplicationNameForUserAgent:application];
} return self;