|
|
|
@ -36,7 +36,7 @@
|
|
|
|
|
, silk = /silk/i.test(ua)
|
|
|
|
|
, sailfish = /sailfish/i.test(ua)
|
|
|
|
|
, tizen = /tizen/i.test(ua)
|
|
|
|
|
, webos = /(web|hpw)os/i.test(ua)
|
|
|
|
|
, webos = /(web|hpw)(o|0)s/i.test(ua)
|
|
|
|
|
, windowsphone = /windows phone/i.test(ua)
|
|
|
|
|
, samsungBrowser = /SamsungBrowser/i.test(ua)
|
|
|
|
|
, windows = !windowsphone && /windows/i.test(ua)
|
|
|
|
@ -71,6 +71,20 @@
|
|
|
|
|
, version: versionIdentifier || getFirstMatch(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if (/Whale/i.test(ua)) {
|
|
|
|
|
result = {
|
|
|
|
|
name: 'NAVER Whale browser'
|
|
|
|
|
, whale: t
|
|
|
|
|
, version: getFirstMatch(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if (/MZBrowser/i.test(ua)) {
|
|
|
|
|
result = {
|
|
|
|
|
name: 'MZ Browser'
|
|
|
|
|
, mzbrowser: t
|
|
|
|
|
, version: getFirstMatch(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if (/coast/i.test(ua)) {
|
|
|
|
|
result = {
|
|
|
|
|
name: 'Opera Coast'
|
|
|
|
@ -78,6 +92,13 @@
|
|
|
|
|
, version: versionIdentifier || getFirstMatch(/(?:coast)[\s\/](\d+(\.\d+)?)/i)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if (/focus/i.test(ua)) {
|
|
|
|
|
result = {
|
|
|
|
|
name: 'Focus'
|
|
|
|
|
, focus: t
|
|
|
|
|
, version: getFirstMatch(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if (/yabrowser/i.test(ua)) {
|
|
|
|
|
result = {
|
|
|
|
|
name: 'Yandex Browser'
|
|
|
|
@ -424,6 +445,9 @@
|
|
|
|
|
(result.vivaldi && result.version >= 1.0) ||
|
|
|
|
|
(result.chrome && result.version >= 20) ||
|
|
|
|
|
(result.samsungBrowser && result.version >= 4) ||
|
|
|
|
|
(result.whale && compareVersions([result.version, '1.0']) === 1) ||
|
|
|
|
|
(result.mzbrowser && compareVersions([result.version, '6.0']) === 1) ||
|
|
|
|
|
(result.focus && compareVersions([result.version, '1.0']) === 1) ||
|
|
|
|
|
(result.firefox && result.version >= 20.0) ||
|
|
|
|
|
(result.safari && result.version >= 6) ||
|
|
|
|
|
(result.opera && result.version >= 10.0) ||
|
|
|
|
|