Bug Tracker

Opened 14 years ago

Closed 14 years ago

Last modified 11 years ago

#3222 closed feature (wontfix)

Add $.browser.mobile to check for mobile browsers

Reported by: dalangalma Owned by:
Priority: minor Milestone: 1.3
Component: core Version: 1.2.6
Keywords: Cc:
Blocked by: Blocking:


It's often useful to present reduced functionality (or just turn off a lot of JavaScript spiffiness) for mobile browsers. A $.browser.mobile flag would help out a lot.

Change History (1)

comment:1 Changed 14 years ago by flesler

Resolution: wontfix
Status: newclosed

Hi, we don't do any specialized code in the core, according to whether the browser is on a mobile or not. This means the core doesn't need this sniffing, you can add it externally.

Something like:

  jQuery.browser.mobile = /mobile/i.test(navigator.userAgent);
Note: See TracTickets for help on using tickets.