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 @@
6
6
*
7
7
* You can turn off the redirect by setting the cookie "stopMobileRedirect=true"
8
8
*/
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)/
10
10
.test( navigator.userAgent ) )
11
11
{
12
12
(function () {
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r81728
Adding a more specific and easier to understand regex for mobile redirect. Wo...
hcatlin
12:24, 8 February 2011
Status & tagging log
18:29, 17 June 2011
Reedy
(
talk
|
contribs
)
changed the
status
of r81730
[
removed:
new
added:
deferred]