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

Refresh if URL is already open in browser #17

Open
karlhepler opened this issue May 26, 2020 · 5 comments
Open

Refresh if URL is already open in browser #17

karlhepler opened this issue May 26, 2020 · 5 comments

Comments

@karlhepler
Copy link

Currently, if browser.OpenURL is invoked multiple times, it will open multiple tabs in the web browser. I'd like to be able to maintain a single invocation, whereby the tab is refreshed if it's already open.

@davecheney
Copy link
Member

Thank you for raising this issue. I don't know how to do what you've asked so I'll mark this issue marked help wanted.

@karlhepler
Copy link
Author

Thanks. If I figure it out somehow, I’ll submit a PR. Hopefully someone else can beat me to it! ;-)

@karlhepler
Copy link
Author

I haven't looked through it yet, but Facebook's create-react-app does this with their dev utils and might be a good resource to lead us in the right direction.

https://github.com/facebook/create-react-app/blob/master/packages/react-dev-utils/openBrowser.js

@buzzdan
Copy link

buzzdan commented Apr 1, 2021

i think @karlhepler lead is a good one.

i also came across this issue:
https://bugs.chromium.org/p/chromium/issues/detail?id=141942

and i hope this can be solved by using specific browser commands (this might cover more use cases then just chromium on OSX)

@servusdei2018
Copy link

I haven't looked through it yet, but Facebook's create-react-app does this with their dev utils and might be a good resource to lead us in the right direction.

https://github.com/facebook/create-react-app/blob/master/packages/react-dev-utils/openBrowser.js

it appears that Facebook uses open under the hood, which itself utilizes xdg-open.

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

No branches or pull requests

5 participants
@davecheney @karlhepler @buzzdan @servusdei2018 and others