From a2e4d9286f8e5769f2833275b410e08a5620a775 Mon Sep 17 00:00:00 2001 From: Ninad Sheth Date: Tue, 20 Aug 2024 14:30:49 +0530 Subject: [PATCH] Fixed behaviour of PERCY_POSTINSTALL_BROWSER --- packages/core/post-install.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/post-install.js b/packages/core/post-install.js index d98f3dccf..c1c491025 100644 --- a/packages/core/post-install.js +++ b/packages/core/post-install.js @@ -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')) {