This is an automated email from the ASF dual-hosted git repository.
jcesarmobile pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/cordova-plugin-wkwebview-engine.git
The following commit(s) were added to refs/heads/master by this push:
new 6f468f4 Bug fix in recent change in iOSExec.nativeCallback (#78)
6f468f4 is described below
commit 6f468f48735c5937f497e6a851901d4f68ce7da2
Author: Alex Hisen <[email protected]>
AuthorDate: Tue Feb 19 07:43:39 2019 -0800
Bug fix in recent change in iOSExec.nativeCallback (#78)
Now, callbackFromNative will actually get called async
---
src/www/ios/ios-wkwebview-exec.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/www/ios/ios-wkwebview-exec.js
b/src/www/ios/ios-wkwebview-exec.js
index f2992c0..331fe93 100644
--- a/src/www/ios/ios-wkwebview-exec.js
+++ b/src/www/ios/ios-wkwebview-exec.js
@@ -124,7 +124,9 @@ var iOSExec = function () {
iOSExec.nativeCallback = function (callbackId, status, message, keepCallback,
debug) {
var success = status === 0 || status === 1;
var args = convertMessageToArgsNativeToJs(message);
- Promise.resolve(cordova.callbackFromNative(callbackId, success, status,
args, keepCallback)); // eslint-disable-line
+ Promise.resolve().then(function () {
+ cordova.callbackFromNative(callbackId, success, status, args,
keepCallback); // eslint-disable-line
+ });
};
// for backwards compatibility
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]