You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2017/03/03 00:52:06 UTC

[07/10] cordova-plugin-wkwebview-engine git commit: CB-12414: (iOS) Forward error from provisional load error to standard load error

CB-12414: (iOS) Forward error from provisional load error to standard load error

 This closes #29


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/commit/5c7cf8c2
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/tree/5c7cf8c2
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/diff/5c7cf8c2

Branch: refs/heads/1.1.x
Commit: 5c7cf8c2ba4f9ca8e6aa5764f5420fd0434213a3
Parents: 65af326
Author: Joel Jeske <jj...@netspend.com>
Authored: Wed Feb 1 11:48:13 2017 -0600
Committer: Steve Gill <st...@gmail.com>
Committed: Thu Mar 2 16:51:33 2017 -0800

----------------------------------------------------------------------
 src/ios/CDVWKWebViewEngine.m | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/blob/5c7cf8c2/src/ios/CDVWKWebViewEngine.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVWKWebViewEngine.m b/src/ios/CDVWKWebViewEngine.m
index 0985316..7e2efa9 100644
--- a/src/ios/CDVWKWebViewEngine.m
+++ b/src/ios/CDVWKWebViewEngine.m
@@ -373,6 +373,11 @@ static void * KVOContext = &KVOContext;
     [[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:CDVPageDidLoadNotification object:webView]];
 }
 
+- (void)webView:(WKWebView*)theWebView didFailProvisionalNavigation:(WKNavigation*)navigation withError:(NSError*)error
+{
+    [self webView:theWebView didFailNavigation:navigation withError:error];
+}
+
 - (void)webView:(WKWebView*)theWebView didFailNavigation:(WKNavigation*)navigation withError:(NSError*)error
 {
     CDVViewController* vc = (CDVViewController*)self.viewController;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org