Skip to content

Commit

Permalink
Support for breaking change in cordova-ios 4 (self.webView is no UIWe…
Browse files Browse the repository at this point in the history
…bView anymore, WKWebView support included)
  • Loading branch information
thomashilzendegen committed Jan 6, 2016
1 parent 4d2b1e9 commit fd0c652
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ios/AppPreferences.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ - (void)pluginInitialize
- (void)defaultsChanged:(NSNotification *)notification {

NSString * jsCallBack = [NSString stringWithFormat:@"cordova.fireDocumentEvent('preferencesChanged');"];

#ifdef __CORDOVA_4_0_0
[self.webViewEngine evaluateJavaScript:jsCallBack completionHandler:nil];
#else
[self.webView stringByEvaluatingJavaScriptFromString:jsCallBack];
#endif
}


Expand Down

0 comments on commit fd0c652

Please sign in to comment.