You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2015/11/25 01:43:35 UTC
cordova-plugin-wkwebview-engine git commit: CB-10073 -
WKWebViewEngine should post CDVPluginResetNotification
Repository: cordova-plugin-wkwebview-engine
Updated Branches:
refs/heads/master 24a8185f0 -> 1ca9684b4
CB-10073 - WKWebViewEngine should post CDVPluginResetNotification
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/1ca9684b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/tree/1ca9684b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/diff/1ca9684b
Branch: refs/heads/master
Commit: 1ca9684b4ca882c8abe9ee028dd33fb472b68323
Parents: 24a8185
Author: Shazron Abdullah <sh...@apache.org>
Authored: Tue Nov 24 16:44:23 2015 -0800
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Tue Nov 24 16:44:23 2015 -0800
----------------------------------------------------------------------
src/ios/CDVWKWebViewEngine.m | 5 +++++
1 file changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/blob/1ca9684b/src/ios/CDVWKWebViewEngine.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVWKWebViewEngine.m b/src/ios/CDVWKWebViewEngine.m
index a399b37..94ddeff 100644
--- a/src/ios/CDVWKWebViewEngine.m
+++ b/src/ios/CDVWKWebViewEngine.m
@@ -251,6 +251,11 @@
#pragma mark WKNavigationDelegate implementation
+- (void)webView:(WKWebView*)webView didStartProvisionalNavigation:(WKNavigation*)navigation
+{
+ [[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:CDVPluginResetNotification object:webView]];
+}
+
- (void)webView:(WKWebView*)webView didFinishNavigation:(WKNavigation*)navigation
{
[[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:CDVPageDidLoadNotification object:webView]];
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org