Skip to content

Commit

Permalink
detect chrome on common windows paths
Browse files Browse the repository at this point in the history
  • Loading branch information
klieber authored and Szpadel committed Nov 4, 2020
1 parent 14fdde5 commit cb52a74
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,12 @@ class RenderPDF {
if (await this.isCommandExists('chrome')) {
return 'chrome';
}
if (await this.isCommandExists('C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe')) {
return 'C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe';
}
if (await this.isCommandExists('C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe')) {
return 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe';
}
// macos
if (await this.isCommandExists('/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome')) {
return '/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome';
Expand Down

0 comments on commit cb52a74

Please sign in to comment.