mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
feat(browser): add detection for Miui Browser
This commit is contained in:
parent
d1a6532d82
commit
d5fe5657d1
@ -561,6 +561,21 @@ const browsersList = [
|
||||
return browser;
|
||||
},
|
||||
},
|
||||
{
|
||||
test: [/MiuiBrowser/i],
|
||||
describe(ua) {
|
||||
const browser = {
|
||||
name: 'Miui',
|
||||
};
|
||||
const version = Utils.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i, ua);
|
||||
|
||||
if (version) {
|
||||
browser.version = version;
|
||||
}
|
||||
|
||||
return browser;
|
||||
},
|
||||
},
|
||||
{
|
||||
test: [/chromium/i],
|
||||
describe(ua) {
|
||||
|
@ -3026,3 +3026,18 @@
|
||||
type: "desktop"
|
||||
engine:
|
||||
name: "Blink"
|
||||
Miui:
|
||||
-
|
||||
ua: "Mozilla/5.0 (Linux; U; Android 9; fr-fr; Redmi Note 8 Pro Build/PPR1.180610.011) AppleWebKit/537.36 (KHTML like Gecko) Version/4.0 Chrome/71.0.3578.141 Mobile Safari/537.36 XiaoMi/MiuiBrowser/11.9.3-"
|
||||
spec:
|
||||
browser:
|
||||
name: "Miui"
|
||||
version: "11.9.3"
|
||||
os:
|
||||
name: "Android"
|
||||
version: "9"
|
||||
versionName: "Pie"
|
||||
platform:
|
||||
type: "mobile"
|
||||
engine:
|
||||
name: "Blink"
|
||||
|
Loading…
Reference in New Issue
Block a user