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

Does not open when browser is already running or doesn't open at all #79

Open
schwarcu opened this issue Dec 1, 2017 · 2 comments
Open

Comments

@schwarcu
Copy link

schwarcu commented Dec 1, 2017

var url = 'http://localhost/results/';
const opn = require('opn');
opn(url, { app: 'chrome' });

It doesn't open chrome when it's already running. When it's closed it works... sometimes
It's weird because it worked before and I did no changes to code and it just stopped opening link when chrome is already running.

Edit: now it doesn't open the link at all or it's completely random.

@schwarcu schwarcu changed the title Does not open when browser is already running Does not open when browser is already running or doesn't open at all Dec 1, 2017
@tanmayrajani
Copy link

Since the module would work differently for different platforms, please mention in which OS this is happening so that opn developers could debug.

I checked this on Ubuntu 16.04 and it works, although I changed app property that you are passing to google-chrome instead of chrome to make it work using xdg-open.

@schwarcu
Copy link
Author

schwarcu commented Dec 4, 2017

It's on Windows 7.

The weird part is that it was working. I didn't touch the code and it just stopped opening the link...

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

2 participants