Skip to content

Commit

Permalink
Fixed behaviour of PERCY_POSTINSTALL_BROWSER (#1695)
Browse files Browse the repository at this point in the history
  • Loading branch information
ninadbstack committed Aug 20, 2024
1 parent 2ee21c2 commit 5e9b413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/post-install.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fs from 'fs';

try {
if (process.env.PERCY_POSTINSTALL_BROWSER) {
if (!['false', '0', undefined].includes(process.env.PERCY_POSTINSTALL_BROWSER)) {
// Automatically download and install Chromium if PERCY_POSTINSTALL_BROWSER is set
await import('./dist/install.js').then(install => install.chromium());
} else if (!process.send && fs.existsSync('./src')) {
Expand Down

0 comments on commit 5e9b413

Please sign in to comment.