Skip to main content

Get current browser and platform

Use following to know the browser and platform of the currently running build:

# do something specific if browser is IEif browser.name = browsers.IE {  // specific to IE}
# do something specific if browser is firefox and version is < 70if browser.name == browsers.firefox && browser.version < 70 {  // specific to firefox 70}
# do something specific if platform is windowsif platform == platforms.windows {  // specific to windows}