Index: trunk/extensions/UploadWizard/resources/mw.fileApi.js |
— | — | @@ -32,9 +32,9 @@ |
33 | 33 | * @todo is there a way to check this instead of hardcoding browsers and version? |
34 | 34 | */ |
35 | 35 | isSliceAvailable: function() { |
36 | | - return mw.fileApi.isAvailable() && |
37 | | - ( ($j.browser.mozilla && $j.browser.version >= '5.0') || |
38 | | - ($j.browser.webkit && $j.browser.version >= '534.28') ); |
| 36 | + return mw.fileApi.isAvailable() && |
| 37 | + ( ($j.browser.mozilla && parseFloat($j.browser.version) >= 5.0) || |
| 38 | + ($j.browser.webkit && parseFloat($j.browser.version) >= 534.28) ); |
39 | 39 | } |
40 | 40 | |
41 | 41 | |