Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an optional flag to prevent opening a new browser tab #109

Open
jeseibel opened this issue Oct 21, 2022 · 0 comments
Open

Add an optional flag to prevent opening a new browser tab #109

jeseibel opened this issue Oct 21, 2022 · 0 comments

Comments

@jeseibel
Copy link

Feature Request

Motivation Behind Feature

In order to view file changes you need to stop and restart the browser server; when that is done Cordova opens a new tab on the active browser, even if a tab is already open for the Cordova project.
Having to close the currently open tab each time the server is rebooted gets annoying.

Feature Description

Add a optional argument --no-launch which will start the server, but won't open a new browser window/tab.

Example:
cordova run browser --no-launch

Alternatives or Workarounds

Using cordova serve achieves this functionality; however, serve currently has an issue with loading plugins:

image

(The plugins work as expected when using cordova run browser or cordova run android.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant