Visitar URL original
platform.js/doc at master · RemoteControl/platform.js · GitHub
Skip to content

Latest commit

 

History

History
 
 

doc

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

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

# Ⓢ Ⓣ

(number, 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.