Skip to content

Commit

Permalink
Add support for a binary CDN location by npm config (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyo837 authored and vladikoff committed Nov 2, 2017
1 parent bd5689b commit d8d4ff2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -12,7 +12,7 @@ var Promise = require('bluebird');
var platform = os.platform();
var arch = os.arch();

var baseCDNURL = process.env.GECKODRIVER_CDNURL || 'https://github.com/mozilla/geckodriver/releases/download';
var baseCDNURL = process.env.GECKODRIVER_CDNURL || process.env.npm_config_geckodriver_cdnurl || 'https://github.com/mozilla/geckodriver/releases/download';

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

0 comments on commit d8d4ff2

Please sign in to comment.