Index: trunk/extensions/OggHandler/OggPlayer.js |
— | — | @@ -186,11 +186,8 @@ |
187 | 187 | if ( this.safari ) { |
188 | 188 | // Detect https://bugs.webkit.org/show_bug.cgi?id=25575 |
189 | 189 | 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; |
195 | 192 | } |
196 | 193 | } |
197 | 194 | |