Bug Tracker

Ticket #3222 (closed feature: wontfix)

Opened 7 years ago

Last modified 3 years ago

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:
Blocking: Blocked by:


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

comment:1 Changed 7 years ago by flesler

  • Status changed from new to closed
  • Resolution set to wontfix

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.