Skip to content

Commit

Permalink
Windows: support LIGHTHOUSE_CHROMIUM_PATH variable for finding Chro…
Browse files Browse the repository at this point in the history
…me. (#1572)
  • Loading branch information
XhmikosR authored and brendankenny committed Feb 1, 2017
1 parent 4442f53 commit 5bbab8d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lighthouse-cli/chrome-finder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@ export function win32() {
process.env.PROGRAMFILES,
process.env['PROGRAMFILES(X86)']
];

if (canAccess(process.env.LIGHTHOUSE_CHROMIUM_PATH)) {
installations.push(process.env.LIGHTHOUSE_CHROMIUM_PATH);
}

prefixes.forEach(prefix =>
suffixes.forEach(suffix => {
const chromePath = path.join(prefix, suffix);
Expand Down

0 comments on commit 5bbab8d

Please sign in to comment.