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

Browser tab opens, but does not focus or come to front #325

Open
broofa opened this issue Oct 23, 2023 · 0 comments
Open

Browser tab opens, but does not focus or come to front #325

broofa opened this issue Oct 23, 2023 · 0 comments

Comments

@broofa
Copy link

broofa commented Oct 23, 2023

As the title says, I have a minimal use case shown below. When I run this script, it opens a browser tab, but fails to bring Chrome to the front or give it focus.

Passing {background:false} for options does not change this behavior.

'Feels like I'm missing something obvious... 😕

import open from 'open';
open('https://npmgraph.js.org/');

CleanShot 2023-10-23 at 07 14 29


$ envinfo

  System:
    OS: macOS 13.4
    CPU: (10) arm64 Apple M1 Max
    Memory: 10.56 GB / 64.00 GB
    Shell: 5.2.15 - /opt/homebrew/bin/bash
  Binaries:
    Node: 16.20.2 - ~/.nvm/versions/node/v16.20.2/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v16.20.2/bin/yarn
    npm: 8.19.4 - ~/.nvm/versions/node/v16.20.2/bin/npm
    Watchman: 2023.10.09.00 - /opt/homebrew/bin/watchman
  Browsers:
    Chrome: 118.0.5993.88
    Firefox: 118.0.2
    Safari: 16.5
  npmPackages:
    @types/node: 20.5.9 => 20.5.9
    @typescript-eslint/eslint-plugin: 6.6.0 => 6.6.0
    @typescript-eslint/parser: 6.6.0 => 6.6.0
    chalk: 5.3.0 => 5.3.0
    commander: 11.1.0 => 11.1.0
    open: 9.1.0 => 9.1.0
    prettier: 3.0.3 => 3.0.3
    standard-version: 9.5.0 => 9.5.0
    typescript: 5.2.2 => 5.2.2
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

1 participant