Add an alias for Samsung Internet

related to #313
pull/362/head
Denis Demchenko 5 years ago
parent 8212e48e02
commit 328852aa0e

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

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

Loading…
Cancel
Save