1
0
mirror of https://github.com/lancedikson/bowser synced 2026-09-23 04:24:54 +00:00

feat: add Brave browser support via clientHints (#597)

This commit is contained in:
Copilot
2026-02-07 18:29:20 +02:00
committed by GitHub
parent fa08e7c6f3
commit 227f5ecd4b
3 changed files with 54 additions and 0 deletions

View File

@@ -1037,6 +1037,28 @@ const browsersList = [
return browser;
},
},
/* Brave Browser */
{
test(parser) {
// Check Client Hints brands for Brave
return parser.hasBrand('Brave');
},
describe(ua, parser) {
const browser = {
name: 'Brave',
};
if (parser) {
const hintsVersion = parser.getBrandVersion('Brave');
if (hintsVersion) {
browser.version = hintsVersion;
return browser;
}
}
return browser;
},
},
{
test: [/chromium/i],
describe(ua) {