r62238 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62237‎ | r62238 | r62239 >
Date:11:34, 10 February 2010
Author:tstarling
Status:ok
Tags:
Comment:
Forgot to click save in editor. Werdna was rushing me.
Modified paths:
  • /trunk/extensions/OggHandler/OggPlayer.js (modified) (history)

Diff [purge]

Index: trunk/extensions/OggHandler/OggPlayer.js
@@ -186,11 +186,8 @@
187187 if ( this.safari ) {
188188 // Detect https://bugs.webkit.org/show_bug.cgi?id=25575
189189 var match = /AppleWebKit\/([0-9]+)/.exec( navigator.userAgent );
190 - if ( match ) {
191 - var major = parseInt( match[1] );
192 - if ( major < 531 ) {
193 - this.safariControlsBug = true;
194 - }
 190+ if ( match && parseInt( match[1] ) < 531 ) {
 191+ this.safariControlsBug = true;
195192 }
196193 }
197194

Status & tagging log