r91130 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91129‎ | r91130 | r91131 >
Date:22:34, 29 June 2011
Author:preilly
Status:ok
Tags:
Comment:
Add Nokia to the redirect
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 ( /(iPhone|iPod|Android.*Mobile|webOS|NetFront|Opera Mini|SEMC-Browser|PlayStation Portable|Nintendo Wii|BlackBerry|Bada|NokiaBrowser|MeeGo)/
 9+if ( /(iPhone|iPod|Android.*Mobile|webOS|NetFront|Opera Mini|SEMC-Browser|PlayStation Portable|Nintendo Wii|BlackBerry|Bada|NokiaBrowser|MeeGo|Nokia)/
1010 .test( navigator.userAgent ) )
1111 {
1212 if ( (document.cookie.indexOf("irect=t") < 0) // Don't redirect if we have the stop cookie ... only testing a subportion of the cookie. Should be REALLY unique!

Status & tagging log