From d13f7f1ff91ada223e8ce7eb50d9a80030cbe668 Mon Sep 17 00:00:00 2001 From: Jef LeCompte Date: Wed, 14 Apr 2021 10:29:19 -0400 Subject: [PATCH] fix(docker): disable opening browser Fixes #2177 This fix disables opening the browser when the user is using Docker, regardless of their dotenv. --- src/index.ts | 1 + test/functional/test-notification.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 0c60dd26e9..aa990155b2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -45,6 +45,7 @@ async function main() { args.push('--disable-setuid-sandbox'); args.push('--headless'); args.push('--disable-gpu'); + config.browser.open = false; } // Add the address of the proxy server if defined diff --git a/test/functional/test-notification.ts b/test/functional/test-notification.ts index 36ba4e0a15..597f0700e4 100644 --- a/test/functional/test-notification.ts +++ b/test/functional/test-notification.ts @@ -32,7 +32,7 @@ sendNotification(link, store); /** * Open browser. */ -if (config.browser.open) { +if (!config.docker && config.browser.open) { open(link.cartUrl ?? link.url); open(link.url); }