1
0
mirror of https://github.com/lancedikson/bowser synced 2026-03-02 03:40:27 +00:00

Fix tests

This commit is contained in:
Robert Sandell
2018-12-30 10:10:33 +02:00
parent f338045df7
commit d9693088cc
3 changed files with 13 additions and 2 deletions

View File

@@ -72,7 +72,7 @@ export default [
version
};
if (versionName) {
os.versionName = versionName;
os.versionName = versionName;
}
return os;
},

View File

@@ -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";