mirror of
https://github.com/lancedikson/bowser
synced 2026-03-02 03:40:27 +00:00
Add more jsdoc for parsePlatform
This commit is contained in:
@@ -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 = {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user