1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00

Merge pull request #436 from willamesoares/master

feat(browser): add detection for Miui Browser
This commit is contained in:
Denis Demchenko 2020-09-12 10:25:04 +03:00 committed by GitHub
commit 444c54a726
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 0 deletions

View File

@ -561,6 +561,21 @@ const browsersList = [
return browser; 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], test: [/chromium/i],
describe(ua) { describe(ua) {

View File

@ -3026,3 +3026,31 @@
type: "desktop" type: "desktop"
engine: engine:
name: "Blink" 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"
-
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"
spec:
browser:
name: "Miui"
os:
name: "Android"
version: "9"
versionName: "Pie"
platform:
type: "mobile"
engine:
name: "Blink"