sindresorhus/open

check if browser process is running event ?

robeverett opened this issue · 1 comments

This works great for my node express app:

app.listen(3000, () => { console.log('Serving on port 3000...'); open('http://localhost:3000'); });

Just one problem, if I restart the node server, it opens a new instance / tab in Chrome.
I would like to be able just to cause a browser refresh instead within the above code.
Anyway to achieve this ?

Duplicate of #256