Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gravitydepartment/user-agent

Simple methods to test the browser's user agent string.
https://github.com/gravitydepartment/user-agent

browser javascript user-agent

Last synced: 30 days ago
JSON representation

Simple methods to test the browser's user agent string.

Awesome Lists containing this project

README

        

[![Gravity Department](https://cdn.gravitydept.com/github/repo-header.png)](https://gravitydept.com/)

# GravDept User Agent

Simple methods to test the browser's user agent string.

## Dependencies

- None

## Usage

Include the script in your page:

``` html

```

And call the methods you need:

``` js
if (userAgent.isOldIos() || userAgent.isOldAndroid()) {
// Warn users their browser is outdated.
}
```