From 47a1cfc5e663a9d2656f6cc24fe04e306fda4b3f Mon Sep 17 00:00:00 2001 From: w-ku Date: Fri, 31 Jul 2020 21:53:37 +0200 Subject: [PATCH] GECKODRIVER_VERSION from .npmrc (#75) GECKODRIVER_VERSION variable set in .npmrc file was ignored. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index fc3d40e0..8608173c 100644 --- a/index.js +++ b/index.js @@ -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(/\/+$/, '');