mirror of
https://github.com/lancedikson/bowser
synced 2026-03-02 03:40:27 +00:00
Fix tests
This commit is contained in:
@@ -72,7 +72,7 @@ export default [
|
||||
version
|
||||
};
|
||||
if (versionName) {
|
||||
os.versionName = versionName;
|
||||
os.versionName = versionName;
|
||||
}
|
||||
return os;
|
||||
},
|
||||
|
||||
@@ -78,7 +78,8 @@ class Utils {
|
||||
static getAndroidVersionName(version) {
|
||||
const v = version.split('.').splice(0, 2).map(function(s) {
|
||||
return parseInt(s) || 0;
|
||||
}).push(0);
|
||||
});
|
||||
v.push(0);
|
||||
if (v[0] == 1 && v[1] < 5) return undefined;
|
||||
if (v[0] == 1 && v[1] < 6) return "Cupcake";
|
||||
if (v[0] == 1 && v[1] >= 6) return "Donut";
|
||||
|
||||
Reference in New Issue
Block a user