BrowserType enum
csv
CRAWLER, CLI, EMAIL, FETCHER, INAPP, MEDIAPLAYER, LIBRARYINFO
See list of possible browser type here.
Values
| Enum | Value |
|---|---|
BrowserType.CLI | "cli" |
BrowserType.CRAWLER | "crawler" |
BrowserType.EMAIL | "email" |
BrowserType.FETCHER | "fetcher" |
BrowserType.INAPP | "inapp" |
BrowserType.MEDIAPLAYER | "mediaplayer" |
BrowserType.LIBRARY | "library" |
Code Example
js
import { UAParser } from 'ua-parser-js';
import { BrowserType } from 'ua-parser-js/enums';
if (UAParser().browser.is(BrowserType.MEDIAPLAYER)) {
console.log('La la la..');
}