dpogue commented on a change in pull request #773: refactor: drop uiwebview &
add wkwebview
URL: https://github.com/apache/cordova-ios/pull/773#discussion_r372440846
##########
File path: cordova-js-src/exec.js
##########
@@ -259,3 +163,12 @@ execProxy.nativeCallback = function () {
};
module.exports = execProxy;
+
+if (window.webkit && window.webkit.messageHandlers &&
window.webkit.messageHandlers.cordova &&
window.webkit.messageHandlers.cordova.postMessage) {
+ // unregister the old bridge
+ cordova.define.remove('cordova/exec');
Review comment:
We shouldn't need to do this hack if cordova/exec is already the right
implementation for WKWebView
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]