Skip to content

Commit

Permalink
only include PROGRAMFILES(X86) if present (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
krystophv authored and paulirish committed Sep 8, 2017
1 parent 530822b commit 52cb50a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions chrome-finder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,9 @@ export function win32() {
const suffixes = [
'\\Google\\Chrome SxS\\Application\\chrome.exe', '\\Google\\Chrome\\Application\\chrome.exe'
];
const prefixes =
[process.env.LOCALAPPDATA, process.env.PROGRAMFILES, process.env['PROGRAMFILES(X86)']];
const prefixes = [
process.env.LOCALAPPDATA, process.env.PROGRAMFILES, process.env['PROGRAMFILES(X86)']
].filter(Boolean);

const customChromePath = resolveChromePath();
if (customChromePath) {
Expand Down

0 comments on commit 52cb50a

Please sign in to comment.