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 <[email protected]> Authored: Mon Apr 17 08:24:32 2017 +0300 Committer: Alexander Sorokin <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
