diff --git a/mobile-detect.js b/mobile-detect.js index 697f25b..a0bdb94 100644 --- a/mobile-detect.js +++ b/mobile-detect.js @@ -745,6 +745,16 @@ define(function () { return this._cache.phone; }, + /** + * Only working on Webkit! And only tested on Android + * If we got the phone from the above function the string between phone and the 'Build' number returns the phone type + */ + phoneType: function() { + if(this.version('Webkit') && this.os() === 'AndroidOS') { + return this.ua.substring(this.ua.indexOf(this.phone()), this.ua.indexOf('Build') -1); + } + }, + /** * Returns the detected tablet type/family string or null. *