mirror of
https://github.com/lancedikson/bowser
synced 2026-03-02 03:40:27 +00:00
Add Android Pie to version names
This commit is contained in:
@@ -69,7 +69,7 @@ export default class Utils {
|
|||||||
* 6.x - Marshmallow
|
* 6.x - Marshmallow
|
||||||
* 7.x - Nougat
|
* 7.x - Nougat
|
||||||
* 8.x - Oreo
|
* 8.x - Oreo
|
||||||
* 9.x - ?
|
* 9.x - Pie
|
||||||
*
|
*
|
||||||
* @example
|
* @example
|
||||||
* getAndroidVersionName("7.0") // 'Nougat'
|
* getAndroidVersionName("7.0") // 'Nougat'
|
||||||
@@ -94,6 +94,7 @@ export default class Utils {
|
|||||||
if (v[0] === 6) return 'Marshmallow';
|
if (v[0] === 6) return 'Marshmallow';
|
||||||
if (v[0] === 7) return 'Nougat';
|
if (v[0] === 7) return 'Nougat';
|
||||||
if (v[0] === 8) return 'Oreo';
|
if (v[0] === 8) return 'Oreo';
|
||||||
|
if (v[0] === 9) return 'Pie';
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user