MOBILE-3177 sites: Support dev versions on minimum version check

This commit is contained in:
Pau Ferrer Ocaña 2019-11-21 15:44:36 +01:00
parent 64bfc0f264
commit 1fea23253c

View File

@ -933,7 +933,7 @@ export class CoreSitesProvider {
protected convertVersionName(name: string): number { protected convertVersionName(name: string): number {
let version = 0; let version = 0;
const parts = name.split('.', 3); const parts = name.split('-')[0].split('.', 3);
parts.forEach((num) => { parts.forEach((num) => {
version = (version * 100) + Number(num); version = (version * 100) + Number(num);
}); });