Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add browser names from FlatHub
Browse files Browse the repository at this point in the history
BelKed authored Jan 7, 2025
1 parent 291da6f commit c05bd46
Showing 1 changed file with 33 additions and 5 deletions.
38 changes: 33 additions & 5 deletions src/queries.ts
Original file line number Diff line number Diff line change
@@ -220,23 +220,27 @@ const browser_appnames = {
'Google-chrome',
'chrome.exe',
'google-chrome-stable',
'com.google.Chrome',

// Chromium
'Chromium',
'Chromium-browser',
'Chromium-browser-chromium',
'chromium.exe',
'org.chromium.Chromium',

// Pre-releases
'Google-chrome-beta',
'Google-chrome-unstable',
'com.google.ChromeDev',
],
firefox: [
// Firefox
'Firefox',
'Firefox.exe',
'firefox',
'firefox.exe',
'org.mozilla.firefox',

// Firefox Developer
'Firefox Developer Edition',
@@ -258,15 +262,26 @@ const browser_appnames = {
'librewolf',
'librewolf.exe',
'librewolf-default',
'io.gitlab.librewolf-community',

// Waterfox
'Waterfox',
'Waterfox.exe',
'waterfox',
'waterfox.exe',
'net.waterfox.waterfox',
],
opera: [

Check warning on line 274 in src/queries.ts

GitHub Actions / lint (20.x)

Replace `⏎····'opera.exe',⏎····'Opera',⏎····'com.opera.Opera',⏎··` with `'opera.exe',·'Opera',·'com.opera.Opera'`

Check warning on line 274 in src/queries.ts

GitHub Actions / Build webpack (node-20)

Replace `⏎····'opera.exe',⏎····'Opera',⏎····'com.opera.Opera',⏎··` with `'opera.exe',·'Opera',·'com.opera.Opera'`
'opera.exe',
'Opera',
'com.opera.Opera',
],
brave: [

Check warning on line 279 in src/queries.ts

GitHub Actions / lint (20.x)

Replace `⏎····'Brave-browser',⏎····'Brave·Browser',⏎····'brave.exe',⏎····'com.brave.Browser',⏎··` with `'Brave-browser',·'Brave·Browser',·'brave.exe',·'com.brave.Browser'`

Check warning on line 279 in src/queries.ts

GitHub Actions / Build webpack (node-20)

Replace `⏎····'Brave-browser',⏎····'Brave·Browser',⏎····'brave.exe',⏎····'com.brave.Browser',⏎··` with `'Brave-browser',·'Brave·Browser',·'brave.exe',·'com.brave.Browser'`
'Brave-browser',
'Brave Browser',
'brave.exe',
'com.brave.Browser',
],
opera: ['opera.exe', 'Opera'],
brave: ['Brave-browser', 'Brave Browser', 'brave.exe'],
edge: [
'msedge.exe', // Windows
'Microsoft Edge', // macOS
@@ -276,14 +291,27 @@ const browser_appnames = {
'microsoft-edge', // linux
'microsoft-edge-beta', // linux beta
'microsoft-edge-dev', // linux dev
'com.microsoft.Edge',
'com.microsoft.EdgeDev',
],
arc: [
'Arc.exe', // Windows
'Arc', // macOS
],
vivaldi: ['Vivaldi-stable', 'Vivaldi-snapshot', 'vivaldi.exe', 'Vivaldi'],
orion: ['Orion'],
yandex: ['Yandex'],
vivaldi: [

Check warning on line 301 in src/queries.ts

GitHub Actions / lint (20.x)

Replace `⏎····'Vivaldi-stable',⏎····'Vivaldi-snapshot',⏎····'vivaldi.exe',⏎····'Vivaldi',⏎····'com.vivaldi.Vivaldi',⏎··` with `'Vivaldi-stable',·'Vivaldi-snapshot',·'vivaldi.exe',·'Vivaldi',·'com.vivaldi.Vivaldi'`

Check warning on line 301 in src/queries.ts

GitHub Actions / Build webpack (node-20)

Replace `⏎····'Vivaldi-stable',⏎····'Vivaldi-snapshot',⏎····'vivaldi.exe',⏎····'Vivaldi',⏎····'com.vivaldi.Vivaldi',⏎··` with `'Vivaldi-stable',·'Vivaldi-snapshot',·'vivaldi.exe',·'Vivaldi',·'com.vivaldi.Vivaldi'`
'Vivaldi-stable',
'Vivaldi-snapshot',
'vivaldi.exe',
'Vivaldi',
'com.vivaldi.Vivaldi',
],
orion: [

Check warning on line 308 in src/queries.ts

GitHub Actions / lint (20.x)

Replace `⏎····'Orion',⏎··` with `'Orion'`

Check warning on line 308 in src/queries.ts

GitHub Actions / Build webpack (node-20)

Replace `⏎····'Orion',⏎··` with `'Orion'`
'Orion',
],
yandex: [

Check warning on line 311 in src/queries.ts

GitHub Actions / lint (20.x)

Replace `⏎····'Yandex',⏎····'ru.yandex.Browser',⏎··` with `'Yandex',·'ru.yandex.Browser'`

Check warning on line 311 in src/queries.ts

GitHub Actions / Build webpack (node-20)

Replace `⏎····'Yandex',⏎····'ru.yandex.Browser',⏎··` with `'Yandex',·'ru.yandex.Browser'`
'Yandex',
'ru.yandex.Browser',
],
};

// Returns a list of (browserName, bucketId) pairs for found browser buckets

1 comment on commit c05bd46

@github-actions
Copy link

Choose a reason for hiding this comment

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

Here are screenshots of this commit:

Screenshots using aw-server v0.12.3b18 (click to expand)

Screenshots using aw-server-rust master (click to expand)

Screenshots using aw-server-rust v0.12.3b18 (click to expand)

Please sign in to comment.