|
|
|
@ -42,7 +42,7 @@
|
|
|
|
|
, windows = !windowsphone && /windows/i.test(ua)
|
|
|
|
|
, mac = !iosdevice && !silk && /macintosh/i.test(ua)
|
|
|
|
|
, linux = !android && !sailfish && !tizen && !webos && /linux/i.test(ua)
|
|
|
|
|
, edgeVersion = getFirstMatch(/edge\/(\d+(\.\d+)?)/i)
|
|
|
|
|
, edgeVersion = getSecondMatch(/edg([ea]|ios)\/(\d+(\.\d+)?)/i)
|
|
|
|
|
, versionIdentifier = getFirstMatch(/version\/(\d+(\.\d+)?)/i)
|
|
|
|
|
, tablet = /tablet/i.test(ua) && !/tablet pc/i.test(ua)
|
|
|
|
|
, mobile = !tablet && /[^-]mobi/i.test(ua)
|
|
|
|
@ -157,7 +157,7 @@
|
|
|
|
|
, chrome: t
|
|
|
|
|
, version: getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)
|
|
|
|
|
}
|
|
|
|
|
} else if (/chrome.+? edge/i.test(ua)) {
|
|
|
|
|
} else if (/edg([ea]|ios)/i.test(ua)) {
|
|
|
|
|
result = {
|
|
|
|
|
name: 'Microsoft Edge'
|
|
|
|
|
, msedge: t
|
|
|
|
@ -329,10 +329,10 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// set OS flags for platforms that have multiple browsers
|
|
|
|
|
if (!result.windowsphone && !result.msedge && (android || result.silk)) {
|
|
|
|
|
if (!result.windowsphone && (android || result.silk)) {
|
|
|
|
|
result.android = t
|
|
|
|
|
result.osname = 'Android'
|
|
|
|
|
} else if (!result.windowsphone && !result.msedge && iosdevice) {
|
|
|
|
|
} else if (!result.windowsphone && iosdevice) {
|
|
|
|
|
result[iosdevice] = t
|
|
|
|
|
result.ios = t
|
|
|
|
|
result.osname = 'iOS'
|
|
|
|
|