Skip to content

Latest commit

 

History

History
 
 

doc

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Platform.js v1.3.1

platform

platform.os

platform

platform

#

(Object): The platform object.


platform.description

#

(string, null): The platform description.


platform.layout

#

(string, null): The name of the browser's layout engine.


platform.manufacturer

#

(string, null): The name of the product's manufacturer.


platform.name

#

(string, null): The name of the browser/environment.


platform.parse([ua=navigator.userAgent])

#

Creates a new platform object.

Arguments

  1. [ua=navigator.userAgent] (Object|string): The user agent string or context object.

Returns

(Object): A platform object.


platform.prerelease

#

(string, null): The alpha/beta release indicator.


platform.product

#

(string, null): The name of the product hosting the browser.


platform.toString()

#

Returns platform.description when the platform object is coerced to a string.

Returns

(string): Returns platform.description if available, else an empty string.


platform.ua

#

(string, null): The browser's user agent string.


platform.version

#

(string, null): The browser/environment version.


platform.os

platform.os

#

(Object): The name of the operating system.


platform.os.architecture

#

(number, null): The CPU architecture the OS is built for.


platform.os.family

#

(string, null): The family of the OS.

Common values include:
"Windows", "Windows Server 2008 R2 / 7", "Windows Server 2008 / Vista", "Windows XP", "OS X", "Ubuntu", "Debian", "Fedora", "Red Hat", "SuSE", "Android", "iOS" and "Windows Phone"


platform.os.toString()

#

Returns the OS string.

Returns

(string): The OS string.


platform.os.version

#

(string, null): The version of the OS.