Skip to content

Refresh if URL is already open in browser #17

Open

Description

@karlhepler

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.

Activity

  1. davecheney commented on May 27, 2020

    @davecheney
    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.

  2. karlhepler commented on May 27, 2020

    @karlhepler
    Author

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

  3. karlhepler commented on May 27, 2020

    @karlhepler
    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

  4. buzzdan commented on Apr 1, 2021

    @buzzdan

    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)

  5. servusdei2018 commented on May 11, 2024

    @servusdei2018

    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions