1
0
mirror of https://github.com/lancedikson/bowser synced 2026-03-02 03:40:27 +00:00

feat(browser): add detection of Opera Touch

fixes #414
This commit is contained in:
Denis Demchenko
2020-06-02 00:00:04 +03:00
parent dbb433945a
commit 3813d92a55
2 changed files with 30 additions and 1 deletions

View File

@@ -168,6 +168,21 @@ const browsersList = [
return browser;
},
},
{
test: [/opt\/\d+(?:.?_?\d+)+/i],
describe(ua) {
const browser = {
name: 'Opera Touch',
};
const version = Utils.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
if (version) {
browser.version = version;
}
return browser;
},
},
{
test: [/yabrowser/i],
describe(ua) {