Repository: cordova-paramedic
Updated Branches:
  refs/heads/master 492025ead -> 615e8cac3


CB-11559 Fixed "Environment is unavailable" error


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

Branch: refs/heads/master
Commit: 615e8cac370e6ff0918422f3e892f91b6e8e8db4
Parents: 492025e
Author: Alexander Sorokin <[email protected]>
Authored: Tue Jul 12 14:58:31 2016 +0300
Committer: Alexander Sorokin <[email protected]>
Committed: Tue Jul 12 14:58:31 2016 +0300

----------------------------------------------------------------------
 lib/ParamedicConfig.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/615e8cac/lib/ParamedicConfig.js
----------------------------------------------------------------------
diff --git a/lib/ParamedicConfig.js b/lib/ParamedicConfig.js
index b68345c..0233eb2 100644
--- a/lib/ParamedicConfig.js
+++ b/lib/ParamedicConfig.js
@@ -34,11 +34,11 @@ function ParamedicConfig(json) {
 }
 
 ParamedicConfig.prototype.getDefaultSauceDeviceName = function () {
-    return this._config.platform === 'android' ? 
DEFAULT_SAUCE_DEVICE_NAME_ANDROID : DEFAULT_SAUCE_DEVICE_NAME_IOS;
+    return this.getPlatformId() === 'android' ? 
DEFAULT_SAUCE_DEVICE_NAME_ANDROID : DEFAULT_SAUCE_DEVICE_NAME_IOS;
 };
 
 ParamedicConfig.prototype.getDefaultSaucePlatformVersion = function () {
-    return this._config.platform === 'android' ? 
DEFAULT_SAUCE_PLATFORM_VERSION_ANDROID : DEFAULT_SAUCE_PLATFORM_VERSION_IOS;
+    return this.getPlatformId() === 'android' ? 
DEFAULT_SAUCE_PLATFORM_VERSION_ANDROID : DEFAULT_SAUCE_PLATFORM_VERSION_IOS;
 };
 
 ParamedicConfig.parseFromArguments = function (argv) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to