1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00

Add more jsdoc for parsePlatform

This commit is contained in:
Denis Demchenko 2017-06-09 22:15:19 +03:00
parent 4fc00cc427
commit c3ad15e0ff

View File

@ -173,6 +173,10 @@ class Parser {
return this.getOS().version;
}
/**
* Get parsed platform
* @return {{}}
*/
getPlatform() {
if (this.parsedResult.platform) {
return this.parsedResult.platform;
@ -181,6 +185,11 @@ class Parser {
return this._parsePlatform();
}
/**
* Get parsed platform
* @return {{}}
* @private
*/
_parsePlatform() {
this.parsedResult.platform = {};