cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alsoro...@apache.org
Subject cordova-paramedic git commit: Fix for `waitForDeviceReady` function on Android 6 & 7
Date Mon, 17 Apr 2017 05:24:42 GMT
Repository: cordova-paramedic
Updated Branches:
  refs/heads/master 8f05d4656 -> 2ca68d375


Fix for `waitForDeviceReady` function on Android 6 & 7


Project: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/commit/2ca68d37
Tree: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/tree/2ca68d37
Diff: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/diff/2ca68d37

Branch: refs/heads/master
Commit: 2ca68d375481342a20e5c9525c937f915b67a072
Parents: 8f05d46
Author: Alexander Sorokin <alexander.sorokin@akvelon.com>
Authored: Mon Apr 17 08:24:32 2017 +0300
Committer: Alexander Sorokin <alexander.sorokin@akvelon.com>
Committed: Mon Apr 17 08:24:32 2017 +0300

----------------------------------------------------------------------
 lib/appium/helpers/wdHelper.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/2ca68d37/lib/appium/helpers/wdHelper.js
----------------------------------------------------------------------
diff --git a/lib/appium/helpers/wdHelper.js b/lib/appium/helpers/wdHelper.js
index f7da6ad..caaa4fd 100644
--- a/lib/appium/helpers/wdHelper.js
+++ b/lib/appium/helpers/wdHelper.js
@@ -129,7 +129,9 @@ module.exports.waitForDeviceReady = function (driver) {
     return driver
         .setAsyncScriptTimeout(ASYNC_SCRIPT_TIMEOUT)
         .executeAsync(function (cb) {
-            document.addEventListener('deviceready', cb, false);
+            document.addEventListener('deviceready', function() {
+                cb();
+            }, false);
         }, []);
 };
 


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


Mime
View raw message