Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
@jdalton jdalton
266 lines (140 sloc) 6.321 kb

Platform.js v1.3.0

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.prerelease

#

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


platform.product

#

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


platform.ua

#

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


platform.version

#

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


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.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.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.version

#

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


platform.os.toString()

#

Returns the OS string.

Returns

(string): The OS string.


Jump to Line
Something went wrong with that request. Please try again.