From: Jay Freeman (saurik) Date: Tue, 29 Mar 2011 09:42:54 +0000 (-0700) Subject: Guard setOfflineWebApplicationCacheEnabled: for 2.0. X-Git-Tag: v1.1.2~14 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/64cc10e299272c00f01bdc2937cb45bc4b0ff118 Guard setOfflineWebApplicationCacheEnabled: for 2.0. --- diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm index 2d489b35..e5cfbb47 100644 --- a/CyteKit/WebViewController.mm +++ b/CyteKit/WebViewController.mm @@ -871,7 +871,9 @@ float CYScrollViewDecelerationRateNormal; [preferences setCacheModel:WebCacheModelDocumentBrowser]; [preferences setJavaScriptCanOpenWindowsAutomatically:YES]; - [preferences setOfflineWebApplicationCacheEnabled:YES]; + + if ([preferences respondsToSelector:@selector(setOfflineWebApplicationCacheEnabled:)]) + [preferences setOfflineWebApplicationCacheEnabled:YES]; if (NSString *agent = [self applicationNameForUserAgent]) [webview setApplicationNameForUserAgent:agent];