michaelx / media-tracker

Self-hosted open source media-tracker for tv shows and movies. (React, Redux)
MIT License
44 stars 5 forks source link

Disable automatic launching of web browser when starting client #46

Closed superbonaci closed 2 years ago

superbonaci commented 2 years ago

Each time I run npm start on client folder, it launches my default web browser. Request patch to be able to configure this.

superbonaci commented 2 years ago

Comment the line media-tracker/client/node_modules/react-dev-utils/openBrowser.js:108 with // in front of the line:

// open(url, options).catch(() => {}); // Prevent `unhandledRejection` error.

Web browser doesn't launch anymore :)

michaelx commented 2 years ago

There is a browser env that can be used to achieve this. See https://create-react-app.dev/docs/advanced-configuration/. That way you don’t have to touch any packages.