Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
oblador committed Oct 31, 2023
1 parent fdaa20a commit 23d19b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/target-chrome-docker/src/get-network-host.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const getNetworkHost = async (execute, dockerId) => {
// https://stackoverflow.com/questions/68816329/how-to-get-docker-container-id-from-within-the-container-with-cgroup-v2
const runningInsideDocker =
fs.existsSync('/proc/self/mountinfo') &&
/\/docker\/containers\//.test(fs.readFileSync('/proc/self/mountinfo', 'utf8'));
/\/docker\/containers\//.test(
fs.readFileSync('/proc/self/mountinfo', 'utf8')
);

// If we are running inside a docker container, our spawned docker chrome instance will be a sibling on the default
// bridge, which means we can talk directly to it via its IP address.
Expand Down

0 comments on commit 23d19b2

Please sign in to comment.