Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: e9d649a812

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
README.md
parse.php

README.md

Platform.js v1.0.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 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] (String): The user agent string.

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

#

(String, Null): The CPU architecture the OS is built for.


platform.os.family

#

(String, Null): The family of the OS.


platform.os.version

#

(String, Null): The version of the OS.


platform.os.toString()

#

Returns the OS string.

Returns

(String): The OS string.


Something went wrong with that request. Please try again.