cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject cordova-plugin-wkwebview-engine git commit: CB-10817 - Will now reload the webView if a crash occurs
Date Wed, 27 Apr 2016 19:37:46 GMT
Repository: cordova-plugin-wkwebview-engine
Updated Branches:
  refs/heads/master 81042af99 -> d70a21dcb


CB-10817 - Will now reload the webView if a crash occurs

This closes #5


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/d70a21dc
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/tree/d70a21dc
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/diff/d70a21dc

Branch: refs/heads/master
Commit: d70a21dcb88d6812c7156cf06299354a13a4464d
Parents: 81042af
Author: dlmma <frederikwessberg@Frederiks-MacBook-Pro-4.local>
Authored: Mon Feb 22 17:54:39 2016 +0100
Committer: Shazron Abdullah <shazron@apache.org>
Committed: Wed Apr 27 12:36:53 2016 -0700

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


http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/blob/d70a21dc/src/ios/CDVWKWebViewEngine.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVWKWebViewEngine.m b/src/ios/CDVWKWebViewEngine.m
index 7d270f7..f638bae 100644
--- a/src/ios/CDVWKWebViewEngine.m
+++ b/src/ios/CDVWKWebViewEngine.m
@@ -280,6 +280,11 @@
     }
 }
 
+- (void)webViewWebContentProcessDidTerminate:(WKWebView *)webView
+{
+    [webView reload];
+}
+
 - (BOOL)defaultResourcePolicyForURL:(NSURL*)url
 {
     // all file:// urls are allowed


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


Mime
View raw message