mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
Merge branch 'hotfix/1.7.1'
This commit is contained in:
commit
6eb9ad39bd
@ -1,5 +1,8 @@
|
||||
# Bowser Changelog
|
||||
|
||||
### 1.7.1 (July 13, 2017)
|
||||
- [ADD] Fix detecting of Tablet PC as tablet (#183)
|
||||
|
||||
### 1.7.0 (May 18, 2017)
|
||||
- [ADD] Add OS version support for Windows and macOS (#178)
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "bowser",
|
||||
"version": "1.7.0",
|
||||
"version": "1.7.1",
|
||||
"description": "Lightweight browser detector",
|
||||
"keywords": [
|
||||
"browser",
|
||||
|
@ -44,7 +44,7 @@
|
||||
, linux = !android && !sailfish && !tizen && !webos && /linux/i.test(ua)
|
||||
, edgeVersion = getFirstMatch(/edge\/(\d+(\.\d+)?)/i)
|
||||
, versionIdentifier = getFirstMatch(/version\/(\d+(\.\d+)?)/i)
|
||||
, tablet = /tablet/i.test(ua)
|
||||
, tablet = /tablet/i.test(ua) && !/tablet pc/i.test(ua)
|
||||
, mobile = !tablet && /[^-]mobi/i.test(ua)
|
||||
, xbox = /xbox/i.test(ua)
|
||||
, result
|
||||
|
Loading…
Reference in New Issue
Block a user