1
0
mirror of https://github.com/lancedikson/bowser synced 2026-09-23 12:34:58 +00:00

Merge pull request #363 from navarroaxel/feat/gsa

feat(browsers): Add Google Search App detection
This commit is contained in:
Denis Demchenko
2019-10-02 21:26:25 +03:00
committed by GitHub
3 changed files with 34 additions and 0 deletions

View File

@@ -561,6 +561,21 @@ const browsersList = [
return browser;
},
},
{
test: [/GSA/i],
describe(ua) {
const browser = {
name: 'Google Search',
};
const version = Utils.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i, ua);
if (version) {
browser.version = version;
}
return browser;
},
},
/* Android Browser */
{