Skip to content

Commit

Permalink
GECKODRIVER_VERSION from .npmrc (#75)
Browse files Browse the repository at this point in the history
GECKODRIVER_VERSION variable set in .npmrc file was ignored.
  • Loading branch information
w-ku authored Jul 31, 2020
1 parent acff435 commit 47a1cfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if (skipDownload === 'true') {
var baseCDNURL = process.env.GECKODRIVER_CDNURL || process.env.npm_config_geckodriver_cdnurl || 'https://github.com/mozilla/geckodriver/releases/download';
var CACHED_ARCHIVE = process.env.GECKODRIVER_FILEPATH ? path.resolve(process.env.GECKODRIVER_FILEPATH) : undefined;

var version = process.env.GECKODRIVER_VERSION || '0.26.0';
var version = process.env.GECKODRIVER_VERSION || process.env.npm_config_geckodriver_version || '0.26.0';

// Remove trailing slash if included
baseCDNURL = baseCDNURL.replace(/\/+$/, '');
Expand Down

0 comments on commit 47a1cfc

Please sign in to comment.