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

Add support for different Opera browsers #18

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

fabiobarcelona
Copy link

Added a different set of Opera browsers.

  • Opera GX
  • Opera
  • Opera Next
  • Opera Developer

ProgId of Opera GX is added as just "Opera" within windowsBrowserProgIds object due to the matching regex not supporting whitespaces, since the Windows ProgId is "Opera GXStable", therefore the matching returns just Opera. This just happens with Opera GX, other browsers don't have spaces.

@sindresorhus
Copy link
Owner

Then the regex should be fixed.

windows.js Outdated
@@ -15,6 +15,10 @@ const windowsBrowserProgIds = {
BraveHTML: {name: 'Brave', id: 'com.brave.Browser'},
BraveBHTML: {name: 'Brave Beta', id: 'com.brave.Browser.beta'},
BraveSSHTM: {name: 'Brave Nightly', id: 'com.brave.Browser.nightly'},
Opera: {name: 'Opera GX', id: 'com.operasoftware.operagx'},
OperaStable: {name: 'Opera', id: 'com.operasoftware.opera'},
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be better to use the ID as used on macOS.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if I got them right, I use Windows and I'm not very familiar with macOS.

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

Successfully merging this pull request may close these issues.

2 participants