Skip to content

Enums : BrowserType

csv
CRAWLER, CLI, EMAIL, FETCHER, INAPP, MEDIAPLAYER, LIBRARY

INFO

Find the example of various browser types in Extensions submodule.

Code Example

now-playing.js
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..');
}

UAParser.js v2 is licensed under AGPLv3 or PRO licenses.