diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-29 02:42:54 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-29 02:42:54 -0700 |
commit | 64cc10e299272c00f01bdc2937cb45bc4b0ff118 (patch) | |
tree | 1690fe5fdb580859c19d6092c3e43c84c62a43e5 | |
parent | 1209b7de89029e86e45b6b1c4ccbf5f5d689ff6f (diff) |
Guard setOfflineWebApplicationCacheEnabled: for 2.0.
-rw-r--r-- | CyteKit/WebViewController.mm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm index 2d489b3..e5cfbb4 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]; |