mirror of
https://github.com/lancedikson/bowser
synced 2026-03-02 03:40:27 +00:00
feat: add LibreWolf browser detection (#578)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: naorpeled <6171622+naorpeled@users.noreply.github.com>
This commit is contained in:
@@ -26,6 +26,7 @@ export const BROWSER_ALIASES_MAP = {
|
||||
'Internet Explorer': 'ie',
|
||||
InternetArchiveCrawler: 'internetarchivecrawler',
|
||||
'K-Meleon': 'k_meleon',
|
||||
LibreWolf: 'librewolf',
|
||||
Maxthon: 'maxthon',
|
||||
'Meta-ExternalAds': 'meta_externalads',
|
||||
'Meta-ExternalAgent': 'meta_externalagent',
|
||||
@@ -92,6 +93,7 @@ export const BROWSER_MAP = {
|
||||
ie: 'Internet Explorer',
|
||||
internetarchivecrawler: 'InternetArchiveCrawler',
|
||||
k_meleon: 'K-Meleon',
|
||||
librewolf: 'LibreWolf',
|
||||
maxthon: 'Maxthon',
|
||||
meta_externalads: 'Meta-ExternalAds',
|
||||
meta_externalagent: 'Meta-ExternalAgent',
|
||||
|
||||
@@ -892,6 +892,21 @@ const browsersList = [
|
||||
return browser;
|
||||
},
|
||||
},
|
||||
{
|
||||
test: [/librewolf/i],
|
||||
describe(ua) {
|
||||
const browser = {
|
||||
name: 'LibreWolf',
|
||||
};
|
||||
const version = Utils.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i, ua);
|
||||
|
||||
if (version) {
|
||||
browser.version = version;
|
||||
}
|
||||
|
||||
return browser;
|
||||
},
|
||||
},
|
||||
{
|
||||
test: [/firefox|iceweasel|fxios/i],
|
||||
describe(ua) {
|
||||
|
||||
Reference in New Issue
Block a user