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

Add macOS Big Sur

This commit is contained in:
Seiji Kohara 2020-11-24 10:15:56 +09:00
parent f09411489c
commit 4995026d5d
2 changed files with 32 additions and 13 deletions

View File

@ -66,6 +66,7 @@ export default class Utils {
* 10.13 - High Sierra * 10.13 - High Sierra
* 10.14 - Mojave * 10.14 - Mojave
* 10.15 - Catalina * 10.15 - Catalina
* 11 - Big Sur
* *
* @example * @example
* getMacOSVersionName("10.14") // 'Mojave' * getMacOSVersionName("10.14") // 'Mojave'
@ -76,19 +77,23 @@ export default class Utils {
static getMacOSVersionName(version) { static getMacOSVersionName(version) {
const v = version.split('.').splice(0, 2).map(s => parseInt(s, 10) || 0); const v = version.split('.').splice(0, 2).map(s => parseInt(s, 10) || 0);
v.push(0); v.push(0);
if (v[0] !== 10) return undefined; switch (v[0]) {
switch (v[1]) { case 10:
case 5: return 'Leopard'; switch (v[1]) {
case 6: return 'Snow Leopard'; case 5: return 'Leopard';
case 7: return 'Lion'; case 6: return 'Snow Leopard';
case 8: return 'Mountain Lion'; case 7: return 'Lion';
case 9: return 'Mavericks'; case 8: return 'Mountain Lion';
case 10: return 'Yosemite'; case 9: return 'Mavericks';
case 11: return 'El Capitan'; case 10: return 'Yosemite';
case 12: return 'Sierra'; case 11: return 'El Capitan';
case 13: return 'High Sierra'; case 12: return 'Sierra';
case 14: return 'Mojave'; case 13: return 'High Sierra';
case 15: return 'Catalina'; case 14: return 'Mojave';
case 15: return 'Catalina';
default: return undefined;
}
case 11: return 'Big Sur';
default: return undefined; default: return undefined;
} }
} }

View File

@ -336,6 +336,20 @@
type: "tv" type: "tv"
engine: engine:
name: "Blink" name: "Blink"
- ua: "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.67 Safari/537.36"
spec:
browser:
name: "Chrome"
version: "87.0.4280.67"
os:
name: "macOS"
version: "11.0.1"
versionName: "Big Sur"
platform:
type: "desktop"
vendor: "Apple"
engine:
name: "Blink"
Google Search: Google Search:
- -
ua: "Mozilla/5.0 (iPhone; CPU iPhone OS 12_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) GSA/83.0.268992909 Mobile/15E148 Safari/605.1" ua: "Mozilla/5.0 (iPhone; CPU iPhone OS 12_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) GSA/83.0.268992909 Mobile/15E148 Safari/605.1"