1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00
Commit Graph

153 Commits

Author SHA1 Message Date
Joan Claret
5b4a89b42a Add a public .detect() method 2017-12-20 21:47:56 +02:00
everget
04ece2212d Correct Microsoft Edge' detection on iOS and Android 2017-10-20 15:05:55 +03:00
Jesse Smick
5d314dfb2f Update useragent test for osname 2017-10-07 11:37:21 +03:00
Jesse Smick
f980192ef3 Add osname to result 2017-09-28 09:33:33 -07:00
Denis Demchenko
9f8ad07aa4 Merge branch 'hotfix/1.7.3'
# Conflicts:
#	CHANGELOG.md
2017-08-30 08:54:25 +03:00
Jason Pang
21a0a0ce72 Fix Chrome detection for Android 8 OPR6 build num
One of Android 8's build numbers is 'opr6.170623.013'. This is expressed
in the user agent as:

"Mozilla/5.0 (Linux; Android 8.0.0; Nexus 6P Build/OPR6.170623.013)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.107 Mobile
Safari/537.36"

Because this library detects the Opera browser if "opera", "opr", or
"opios" is contained in the user agent, the above user agent string is
incorrectly detected as a versionless Opera, instead of Chrome 60.

This commit changes the detection of "opr" to require a trailing slash
'/' character. This works because uild numbers are expressed as
Build/X..., whereas Opera versions are expressed as OPR/X.

fixes #193
2017-08-30 08:51:19 +03:00
Denis Demchenko
6eb9ad39bd Merge branch 'hotfix/1.7.1' 2017-07-13 11:30:01 +03:00
danesh
e5096ae2c5 Avoid detecting Tablet PCs as tablet
Fixes #183
2017-07-13 11:28:03 +03:00
Denis Demchenko
744d89089a Add test for Safari on iOS 11 Preview
related to #180
2017-06-24 23:32:15 +03:00
rkurbatov
b066f9bdeb adds MacOS support 2017-05-18 00:41:09 +03:00
rkurbatov
98538362b3 adds windows version detection 2017-05-18 00:28:51 +03:00
Dmitri Voronianski
29bb872ab2 fix global exports 2016-11-29 15:22:28 +01:00
Denis Demchenko
c7d663a7b5 Add tests for some devices on Windows
related to #89
2016-11-03 17:37:36 +02:00
Denis Demchenko
8b92707e7b Throw an error when minVersion map has not a string as a browser version
fixes #165
2016-10-31 11:07:53 +02:00
Benoit de La Forest
9f31efa62f Fix WindowsPhone flagged as iOS
Related to !168
2016-10-28 13:03:07 +02:00
Benoit de La Forest
e44ca1de6e fix windowsphone flagged as android
Closes #167
2016-10-27 17:52:03 +02:00
Denis Demchenko
27c7f5b294 Fix mobile Opera's version detection
refers to #158
2016-09-19 22:58:37 +03:00
Denis Demchenko
21b9e617a1 Merge branch 'eb_samsungBrowser' of https://github.com/eriben/bowser into eriben-eb_samsungBrowser 2016-08-30 00:17:37 +03:00
Erik Bengtsson
b9d0ed6fd8 Added support for Samsung Internet for Android 2016-08-27 12:22:38 -04:00
devel-pa
c7778c550e Act safe in case navigator doesn't have a userAgent. 2016-08-24 18:30:09 +02:00
Chris
1c042f96aa Fix #150 2016-08-08 10:37:02 -04:00
Maksim Ryzhikov
2de21e77f0 fix: Error Object doesn't support this property or method fixes #147 2016-07-26 18:16:33 +03:00
Denis Demchenko
e3be8145dc fix strictMode 2016-07-07 18:18:48 +03:00
Denis Demchenko
1729a5971b fix jsdoc declaration 2016-07-07 18:17:49 +03:00
Denis Demchenko
3f90c80425 fix code styleguide: 4 spaces → 2 spaces 2016-07-07 18:03:29 +03:00
Denis Demchenko
a28903bd29 fix strictMode for isUnsupportedBrowser 2016-07-07 18:02:18 +03:00
Nir Rattner
65dfb0918c Fix strict mode logic 2016-07-06 17:01:02 -04:00
Denis Demchenko
5bf468659a fix type detection of chromium browsers
fix #142
2016-06-30 21:13:02 +03:00
Denis Demchenko
b84c5c09fb fix mistype 2016-06-28 11:16:11 +03:00
Alexander Lukin
134aeede53 add support for optional ua parameter 2016-06-16 16:01:45 +03:00
Alexander Lukin
c30f6d41d9 fix isUnsupportedBrowser documentation 2016-06-16 13:49:18 +03:00
Alexander Lukin
43ac868d84 export bowser.check 2016-06-16 13:45:24 +03:00
Alexander Lukin
ec7531e8cb remove @see jsbin comment 2016-06-16 13:43:48 +03:00
Alexander Lukin
24b91a4dab fix comments 2016-06-16 13:41:21 +03:00
Alexander Lukin
c77cf0ae1b refactoring: use map instead of direct Array::map 2016-06-16 13:39:05 +03:00
Alexander Lukin
b51a35e006 add Array::map polyfill to compatible with es4 2016-06-16 13:38:25 +03:00
Alexander Lukin
c9eed902e3 add check method 2016-06-16 13:07:46 +03:00
Alexander Lukin
57a45d1dee fix comments 2016-06-16 13:07:46 +03:00
kerbyfc
6715bb2b08 Implement isUnsupportedBrowser method
See http://jsbin.com/vohahaciku/1/edit?js,console
2016-06-16 13:07:35 +03:00
Denis Demchenko
e817fd67a7 add SlimerJS support
close #141
2016-05-19 00:57:34 +03:00
Denis Demchenko
6749f62528 add Chromium detecting
related to #94
2016-05-10 23:25:56 +03:00
Denis Demchenko
542277ceb7 add Xbox detection
#fix 139
2016-05-09 10:40:47 +03:00
Denis Demchenko
277202172b add some browsers from #73
fix #73
2016-05-09 10:18:11 +03:00
Denis Demchenko
891f98100f add Puffin detection
fix #68
2016-05-09 10:02:20 +03:00
Denis Demchenko
78ee04fa37 fix Android tablet detection
fix #136
2016-05-09 09:45:18 +03:00
Denis Demchenko
b9edb72e2f add Epiphany browser
fix #130
2016-05-09 09:18:00 +03:00
Denis Demchenko
40fc55f393 add blink flag when we can suppose it
fix #134
2016-05-09 09:06:32 +03:00
Denis Demchenko
d6fb6d5358 fix order: Chrome should be almost lowest, but before Safari 2016-05-08 15:08:19 +03:00
Denis Demchenko
4ac5b4e14d add Opera Coast detection
fix #133
2016-05-08 14:58:18 +03:00
Denis Demchenko
0b120a860c add tests for UC Browser on iOS 2016-05-08 14:41:55 +03:00