Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Latest commit

 

History

History
18 lines (15 loc) · 352 Bytes

README.md

File metadata and controls

18 lines (15 loc) · 352 Bytes

UA.js

ua.js is a very small library to detect user-agents (browsers) and devices. The library has methods to detect specific browsers (major ones) and also support for detecting class of browsers (like Gecko, WebKit, etc.)

Usage

if (UA.isOpera()) {
    // Opera browser
}
if (UA.isTV()) {
    // I'm running on a TV!
}