]> git.saurik.com Git - cydia.git/commitdiff
Guard setOfflineWebApplicationCacheEnabled: for 2.0.
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 29 Mar 2011 09:42:54 +0000 (02:42 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 29 Mar 2011 09:42:54 +0000 (02:42 -0700)
CyteKit/WebViewController.mm

index 2d489b3507360ca9a5765e3019b4b7e9ecb50b97..e5cfbb47d9f825e277f40814d7f3e9b34e998ce8 100644 (file)
@@ -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];