Skip to content

Commit

Permalink
fix(docker): disable opening browser
Browse files Browse the repository at this point in the history
Fixes #2177

This fix disables opening the browser when the user
is using Docker, regardless of their dotenv.
  • Loading branch information
jef committed Apr 14, 2021
1 parent f0e5c5d commit d13f7f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/functional/test-notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit d13f7f1

Please sign in to comment.