diff --git a/src/constants.js b/src/constants.js index d0e084c..dfae9ee 100644 --- a/src/constants.js +++ b/src/constants.js @@ -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', diff --git a/src/parser.js b/src/parser.js index a91b404..1470de8 100644 --- a/src/parser.js +++ b/src/parser.js @@ -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 = {};