1
0
mirror of https://github.com/lancedikson/bowser synced 2024-09-28 22:30:44 +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 {
webkit: t
, mobile: iphone || ipad || android
, chrome: t
, version: ua.match(/chrome\/(\d+(\.\d+)?)/i)[1]
}