diff options
| author | Juuso Lapinlampi <wub@partyvan.eu> | 2015-09-28 00:02:53 +0200 |
|---|---|---|
| committer | Juuso Lapinlampi <wub@partyvan.eu> | 2015-09-28 00:02:53 +0200 |
| commit | 42a100ef0e4ec9681dad66029912c7748baf33bc (patch) | |
| tree | ad6013bae2cc71ce1f404527d6431644506ae916 /js | |
| parent | e4c38033bb3c8e4f44ba93e604652d9eb8e9b0b8 (diff) | |
Add pomf.js parseInt() radix 10
Fixes ESLint radix warning using Airbnb ES5 config.
Diffstat (limited to 'js')
| -rw-r--r-- | js/pomf.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -61,7 +61,7 @@ $(function() { var MAX_SIZE = (function(node) { var max = node.attr('data-max-size') || '120MiB'; - var num = parseInt(/([0-9,]+).*/.exec(max)[1].replace(',', '')); + var num = parseInt(/([0-9,]+).*/.exec(max)[1].replace(',', ''), 10); var unit = /(?:([KMGTPEZY])(i)?B|([BKMGTPEZY]))/.exec(max) || ['B', '', '']; var oneUnit = Math.pow( |
