1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00

Set mobile attribute if the browser is chrome.

Important to know, as chrome can run on mobile as well as desktops.
This commit is contained in:
Jesper Thomschütz 2013-12-03 22:01:48 +00:00
parent f448737f15
commit 9082146fc8

View File

@ -54,6 +54,7 @@
} }
if (chrome) return { if (chrome) return {
webkit: t webkit: t
, mobile: iphone || ipad || android
, chrome: t , chrome: t
, version: ua.match(/chrome\/(\d+(\.\d+)?)/i)[1] , version: ua.match(/chrome\/(\d+(\.\d+)?)/i)[1]
} }