Repository: cordova-plugin-wkwebview-engine Updated Branches: refs/heads/master b5c8de507 -> 06b909813
CB-10107 - nativeEvalAndFetch called for all bridges 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/06b90981 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/tree/06b90981 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/diff/06b90981 Branch: refs/heads/master Commit: 06b90981382457bb99e5edab62c14de683cf05e9 Parents: b5c8de5 Author: Shazron Abdullah <[email protected]> Authored: Tue Dec 1 12:04:02 2015 -0800 Committer: Shazron Abdullah <[email protected]> Committed: Tue Dec 1 12:04:02 2015 -0800 ---------------------------------------------------------------------- src/www/ios/ios-wkwebview-exec.js | 10 ++++++++++ 1 file changed, 10 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/blob/06b90981/src/www/ios/ios-wkwebview-exec.js ---------------------------------------------------------------------- diff --git a/src/www/ios/ios-wkwebview-exec.js b/src/www/ios/ios-wkwebview-exec.js index 20a775a..b4d07ad 100644 --- a/src/www/ios/ios-wkwebview-exec.js +++ b/src/www/ios/ios-wkwebview-exec.js @@ -135,6 +135,16 @@ iOSExec.nativeCallback = function(callbackId, status, message, keepCallback, deb }, 0); }; +// for backwards compatibility +iOSExec.nativeEvalAndFetch = function(func) { + try { + func(); + } catch (e) { + console.log(e); + } +}; + + // unregister the old bridge cordova.define.remove('cordova/exec'); // redefine bridge to our new bridge --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
