summaryrefslogtreecommitdiff
path: root/CyteKit
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-29 02:42:54 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-29 02:42:54 -0700
commit64cc10e299272c00f01bdc2937cb45bc4b0ff118 (patch)
tree1690fe5fdb580859c19d6092c3e43c84c62a43e5 /CyteKit
parent1209b7de89029e86e45b6b1c4ccbf5f5d689ff6f (diff)
Guard setOfflineWebApplicationCacheEnabled: for 2.0.
Diffstat (limited to 'CyteKit')
-rw-r--r--CyteKit/WebViewController.mm4
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];