From cba2f12f3a348509b02e38b9c849612371a4ddfd Mon Sep 17 00:00:00 2001 From: Brian Geppert Date: Tue, 16 Dec 2014 13:43:21 -0600 Subject: [PATCH] Only fill in cacheFolder path string one time. --- src/ios/MyMainViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ios/MyMainViewController.m b/src/ios/MyMainViewController.m index d2d9bd6..c753a61 100755 --- a/src/ios/MyMainViewController.m +++ b/src/ios/MyMainViewController.m @@ -239,7 +239,7 @@ - (void)viewDidLoad // Copy UIWebView to WKWebView so upgrading to the new webview is less of a pain in the .. NSString* appLibraryFolder = [NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES) objectAtIndex:0]; - NSString* cacheFolder = [appLibraryFolder stringByAppendingPathComponent:@"Caches"]; + NSString* cacheFolder; if ([[NSFileManager defaultManager] fileExistsAtPath:[appLibraryFolder stringByAppendingPathComponent:@"WebKit/LocalStorage/file__0.localstorage"]]) { cacheFolder = [appLibraryFolder stringByAppendingPathComponent:@"WebKit/LocalStorage"];