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;
}
- (void) setViewportWidth:(float)width {
- width_ = width ? width != 0 : [[self class] defaultWidth];
+ width_ = width != 0 ? width : [[self class] defaultWidth];
[webview_ setViewportSize:CGSizeMake(width_, UIWebViewGrowsAndShrinksToFitHeight) forDocumentTypes:0x10];
}
Section: Packaging
Maintainer: Jay Freeman (saurik) <saurik@saurik.com>
Architecture: iphoneos-arm
-Version: 1.0.2987-1
+Version: 1.0.2988-1
Replaces: com.sosiphone.addcydia
Depends: apr-lib, apt7-lib, apt7-key, darwintools, pcre, shell-cmds, system-cmds
Pre-Depends: dpkg (>= 1.14.25-8)