beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
BrowserInfo
Ops.Html.BrowserInfo_v3
Namespace: Ops.Html
Reports the browser being used

summary (oneliner)

Performs a browser check. Some ops only work with certain browsers, you can use this op to create fallbacks.

iOS detection is not very reliable, there is no safe and futureproof way to detect it anymore.

doc

issues

youtube id

collections

related ops

Inputs

Outputs

Is Mobile (boolean Number)

true if mobile platform, false if not


Is Touchscreen (boolean Number)

Is IE (boolean Number)

True if the browser is any of IE 9, IE 10, IE 11


Is Edge (boolean Number)

True if the browser is Edge


Is Chrome (boolean Number)

True if the browser is Chrome or Chrome Mobile


Is Firefox (boolean Number)

True if the browser is Firefox or Firefox mobile


Is Opera (boolean Number)

True if the browser is Opera


Is Safari (boolean Number)

True if the browser is Safari (iOS & macOS & OS X)


Is Windows (boolean Number)

true if operating system is windows


Is Linux (boolean Number)

true if operating system is linux


Is Mac (boolean Number)

true if operating system is mac


Is iOS (boolean Number)

true if operating system is iOS


Is Android (boolean Number)

true if operating system is Android


Is Electron (boolean Number)

true if cables electron app is used


Operating System (String)

exact name of the operating system


Browser Name (String)

name of the browser


OS Version (String)

version of the os


Language (String)

browser language


User Agent (String)

current user agent


Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save
BrowserCheck - example:


Credits


  • Uses library: Platform.js (A platform detection library that works on nearly all JavaScript platforms.)
  • Op author: cables

Changelog


cloned op from Ops.Html.BrowserCheck_v2
2020-10-15 - simod

added lib: platform.js
2020-10-15 - simod

Ops.User.cables.BrowserCheck renamed to Ops.Html.BrowserInfo
2020-10-15 - simod

Ops.Html.BrowserInfo renamed to Ops.Html.BrowserCheck_v3
2020-10-15 - cables

Ops.Html.BrowserCheck_v3 renamed to Ops.Html.BrowserInfo
2020-12-01 - pandur

Ops.Html.BrowserInfo renamed to Ops.Html.BrowserInfo_v3
2020-12-01 - pandur

Examples using BrowserInfo_v3

Public Patches using BrowserInfo_v3