mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
feat: add Pale Moon browser support (#495)
This commit is contained in:
parent
29222b2fcf
commit
bb8f94efcd
@ -22,6 +22,7 @@ export const BROWSER_ALIASES_MAP = {
|
||||
'NAVER Whale Browser': 'naver',
|
||||
Opera: 'opera',
|
||||
'Opera Coast': 'opera_coast',
|
||||
'Pale Moon': 'pale_moon',
|
||||
PhantomJS: 'phantomjs',
|
||||
Puffin: 'puffin',
|
||||
QupZilla: 'qupzilla',
|
||||
@ -64,6 +65,7 @@ export const BROWSER_MAP = {
|
||||
naver: 'NAVER Whale Browser',
|
||||
opera: 'Opera',
|
||||
opera_coast: 'Opera Coast',
|
||||
pale_moon: 'Pale Moon',
|
||||
phantomjs: 'PhantomJS',
|
||||
puffin: 'Puffin',
|
||||
qupzilla: 'QupZilla',
|
||||
|
@ -108,6 +108,21 @@ const browsersList = [
|
||||
return browser;
|
||||
},
|
||||
},
|
||||
{
|
||||
test: [/PaleMoon/i],
|
||||
describe(ua) {
|
||||
const browser = {
|
||||
name: 'Pale Moon',
|
||||
};
|
||||
const version = Utils.getFirstMatch(commonVersionIdentifier, ua) || Utils.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i, ua);
|
||||
|
||||
if (version) {
|
||||
browser.version = version;
|
||||
}
|
||||
|
||||
return browser;
|
||||
},
|
||||
},
|
||||
{
|
||||
test: [/MZBrowser/i],
|
||||
describe(ua) {
|
||||
|
@ -3054,3 +3054,32 @@
|
||||
type: "mobile"
|
||||
engine:
|
||||
name: "Blink"
|
||||
Pale Moon:
|
||||
-
|
||||
ua: "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Goanna/4.8 Firefox/68.0 PaleMoon/29.1.1"
|
||||
spec:
|
||||
browser:
|
||||
name: "Pale Moon"
|
||||
version: "29.1.1"
|
||||
os:
|
||||
name: "Windows"
|
||||
version: "NT 10.0"
|
||||
versionName: "10"
|
||||
platform:
|
||||
type: "desktop"
|
||||
engine:
|
||||
name: "Gecko"
|
||||
version: "20100101"
|
||||
-
|
||||
ua: "Mozilla/5.0 (X11; Linux i686; rv:45.9) Gecko/20100101 Goanna/3.2 Firefox/45.9 PaleMoon/27.2.0"
|
||||
spec:
|
||||
browser:
|
||||
name: "Pale Moon"
|
||||
version: "27.2.0"
|
||||
os:
|
||||
name: "Linux"
|
||||
platform:
|
||||
type: "desktop"
|
||||
engine:
|
||||
name: "Gecko"
|
||||
version: "20100101"
|
||||
|
Loading…
Reference in New Issue
Block a user