Bug Tracker

Ticket #3222 (closed feature: wontfix)

Opened 7 years ago

Closed 7 years ago

Last modified 4 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

comment:1 Changed 7 years ago by flesler

comment:1 Changed 7 years ago by flesler

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

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.