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

Add an alias for Samsung Internet

related to #313
This commit is contained in:
Denis Demchenko 2019-04-12 21:43:09 +03:00
parent 8212e48e02
commit 328852aa0e
2 changed files with 4 additions and 3 deletions

View File

@ -25,6 +25,7 @@ const BROWSER_ALIASES_MAP = {
QupZilla: 'qupzilla',
Safari: 'safari',
Sailfish: 'sailfish',
'Samsung Internet for Android': 'samsung_internet',
SeaMonkey: 'seamonkey',
Sleipnir: 'sleipnir',
Swing: 'swing',

View File

@ -343,11 +343,11 @@ class Parser {
*
* @example
* const browser = new Bowser(UA);
* if (browser.check({chrome: '>118.01.1322' }))
* if (browser.satisfies({chrome: '>118.01.1322' }))
* // or with os
* if (browser.check({windows: { chrome: '>118.01.1322' } }))
* if (browser.satisfies({windows: { chrome: '>118.01.1322' } }))
* // or with platforms
* if (browser.check({desktop: { chrome: '>118.01.1322' } }))
* if (browser.satisfies({desktop: { chrome: '>118.01.1322' } }))
*/
satisfies(checkTree) {
const platformsAndOSes = {};