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 2016/09/08 09:27:10 UTC

cordova-plugin-wkwebview-engine git commit: CB-11815: (iOS) Fix hard-coded bridge name "cordova"

Repository: cordova-plugin-wkwebview-engine
Updated Branches:
  refs/heads/master a1da5d22c -> a4f3e8848


CB-11815: (iOS) Fix hard-coded bridge name "cordova"

 This closes #18


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

Branch: refs/heads/master
Commit: a4f3e8848508ea8e12e03e168f6cf398400ede1c
Parents: a1da5d2
Author: Luca Torella <lu...@gmail.com>
Authored: Wed Sep 7 09:35:52 2016 +0200
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Thu Sep 8 02:26:46 2016 -0700

----------------------------------------------------------------------
 src/ios/CDVWKWebViewEngine.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/blob/a4f3e884/src/ios/CDVWKWebViewEngine.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVWKWebViewEngine.m b/src/ios/CDVWKWebViewEngine.m
index 8039dcc..f60eace 100644
--- a/src/ios/CDVWKWebViewEngine.m
+++ b/src/ios/CDVWKWebViewEngine.m
@@ -98,7 +98,7 @@
     }
 
     if ([self.viewController conformsToProtocol:@protocol(WKScriptMessageHandler)]) {
-        [wkWebView.configuration.userContentController addScriptMessageHandler:(id < WKScriptMessageHandler >)self.viewController name:@"cordova"];
+        [wkWebView.configuration.userContentController addScriptMessageHandler:(id < WKScriptMessageHandler >)self.viewController name:CDV_BRIDGE_NAME];
     }
 
     [self updateSettings:settings];


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