1
0
mirror of https://github.com/lancedikson/bowser synced 2024-09-28 22:30:44 +00:00
Commit Graph

136 Commits

Author SHA1 Message Date
Jesse Smick
f980192ef3 Add osname to result 2017-09-28 09:33:33 -07: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
danesh
e5096ae2c5 Avoid detecting Tablet PCs as tablet
Fixes #183
2017-07-13 11:28:03 +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
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
e55dd78792 add support of Maxthon browser on iOS 2016-05-08 14:37:10 +03:00
Denis Demchenko
62745525df add support firefox for iOS 2016-05-08 14:24:36 +03:00
Denis Demchenko
197c203e11 fix Safari browser name on iOS 2016-05-07 18:55:19 +03:00
Denis Demchenko
80af774724 remove minified file from git 2016-05-06 21:29:22 +03:00
Denis Demchenko
5b67843977 add nexus mobile to detection 2016-04-16 19:00:31 +03:00
Denis Demchenko
71b69e822d Merge branch 'fix-nexus-mobile-tablet' of git://github.com/daemon1981/bowser into daemon1981-fix-nexus-mobile-tablet 2016-04-16 18:54:58 +03:00
Denis Demchenko
31805826f3 Merge branch 'vivaldi-support' of git://github.com/pokono/bowser into pokono-vivaldi-support
# Conflicts:
#	README.md

merging #120
2016-04-16 18:53:36 +03:00
Denis Demchenko
e5a4bf15bc Merge branch 'QupZilla' of git://github.com/yconoclast/bowser into yconoclast-QupZilla
# Conflicts:
#	README.md
#	src/useragents.js
2016-04-15 00:01:11 +03:00