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"];