UADetect browser
component
Description
Get's the name of the browser that the client is using.
Possible Returns
Opera
Chrome
Firefox
Safari
IE
Edge
Unknown
Usage Example
#1
import { browser } from 'uadetect';if (browser === 'IE') { element.innerHTML = 'Sorry, IE is not supported';}
#2
import { browser } from 'uadetect';if (browser === 'Chrome') { element.innerHTML = 'You are using Chrome'; // Do Something}
Table of Contents