Like the title says. Fairly accurate browser detection, though I only had a chance to test it on Windows (Chrome/Firefox) and Linux (Chrome/Firefox).
var info = new Detect({format: false});
To view the full object, console.log(info)
output:
{
browser: {
short_version: browserShortVersion,
name : "browserName",
engine : "browserEngine",
version : "browserVersion",
},
os: {
architecture: systemBits,
system: "systemName",
},
plugins: {
[INSTALLED_PLUGINS_LIST]
},
supports: {
[BROWSER_SUPPORTS_FEATURE_LIST]
},
}
Key | Value | Type | Default |
---|---|---|---|
add_classes | Add detected browser and system information to the class list of the HTML node. | bool | true |
ignore | (plugins|os|browser|supports) - Remove the respective element from the output. | object | N/A |