You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to open a URL with either Chrome or Firefox and I have to know which one is available, because of the differences in their command line arguments. I tried wrapping the open funtion in a try/catch but that doesn't seem to work.
I don't really need a cross-platform solution, at the moment. I think it's somewhat easy to check for available browsers in a *nix environment but it's a hassle in Windows. Looks like that win-detect-browsers works well, though. Thank you very much!
Hey all,
I want to open a URL with either Chrome or Firefox and I have to know which one is available, because of the differences in their command line arguments. I tried wrapping the open funtion in a try/catch but that doesn't seem to work.
Even if I were to catch it, windows shows the error message that the program in question doesn't exist. Basically this:
I figure I have to first check whether Chrome or Firefox are available. How would I do that?
The text was updated successfully, but these errors were encountered: