Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #147 from Varun-garg/fixCompatibilityWithOldEnvNames
Browse files Browse the repository at this point in the history
Fix compatibility with previous env names
  • Loading branch information
kalamcs authored Apr 3, 2019
2 parents ab0fd5f + fdde6e2 commit 0771236
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var createBrowserStackTunnel = function (logger, config, emitter) {
return Q()
}

const bsAccesskey = process.env.BROWSERSTACK_ACCESS_KEY || bsConfig.accessKey
const bsAccesskey = process.env.BROWSERSTACK_ACCESS_KEY || process.env.BROWSER_STACK_ACCESS_KEY || bsConfig.accessKey
const bsLocal = new browserstack.Local()
const bsLocalArgs = { key: bsAccesskey }
const deferred = Q.defer()
Expand Down Expand Up @@ -39,8 +39,8 @@ var createBrowserStackClient = function (/* config.browserStack */config, /* Bro
config = config || {}

var options = {
username: env.BROWSERSTACK_USERNAME || config.username,
password: env.BROWSERSTACK_ACCESS_KEY || config.accessKey
username: env.BROWSERSTACK_USERNAME || env.BROWSER_STACK_USERNAME || config.username,
password: env.BROWSERSTACK_ACCESS_KEY || env.BROWSER_STACK_ACCESS_KEY || config.accessKey
}

if (config.proxyHost && config.proxyPort) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "karma-browserstack-launcher",
"version": "1.5.0",
"version": "1.5.1",
"description": "A Karma plugin. Launch any browser on BrowserStack!",
"main": "index.js",
"repository": {
Expand Down

0 comments on commit 0771236

Please sign in to comment.