1
0
mirror of https://github.com/lancedikson/bowser synced 2026-09-24 04:55:13 +00:00

feat(browsers): Add Google Search App detection

This commit is contained in:
Axel Navarro
2019-09-25 08:44:58 -03:00
parent bc2d51a8f9
commit e29357793a
3 changed files with 34 additions and 0 deletions

View File

@@ -546,6 +546,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 */
{