r81730 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r81729‎ | r81730 | r81731 >
Date:12:27, 8 February 2011
Author:hcatlin
Status:deferred
Tags:
Comment:
moving the new regex to the actual MobileRedirect.js file. forgot to do that in r81728
Modified paths:
  • /trunk/extensions/WikimediaMobile/MobileRedirect.js (modified) (history)

Diff [purge]

Index: trunk/extensions/WikimediaMobile/MobileRedirect.js
@@ -5,7 +5,7 @@
66 *
77 * You can turn off the redirect by setting the cookie "stopMobileRedirect=true"
88 */
9 -if ( /(5.0[ ]?\(..[^a].*Mobile.*Safari|webOS|NetFront|Opera Mini|SEMC-Browser|PlayStation Portable|Nintendo Wii|BlackBerry)/
 9+if ( /(iPhone|iPod|Android.*Mobile|webOS|NetFront|Opera Mini|SEMC-Browser|PlayStation Portable|Nintendo Wii|BlackBerry)/
1010 .test( navigator.userAgent ) )
1111 {
1212 (function () {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r81728Adding a more specific and easier to understand regex for mobile redirect. Wo...hcatlin12:24, 8 February 2011

Status & tagging log