summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuuso Lapinlampi <wub@partyvan.eu>2015-09-28 00:02:53 +0200
committerJuuso Lapinlampi <wub@partyvan.eu>2015-09-28 00:02:53 +0200
commit42a100ef0e4ec9681dad66029912c7748baf33bc (patch)
treead6013bae2cc71ce1f404527d6431644506ae916
parente4c38033bb3c8e4f44ba93e604652d9eb8e9b0b8 (diff)
Add pomf.js parseInt() radix 10
Fixes ESLint radix warning using Airbnb ES5 config.
-rw-r--r--js/pomf.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/pomf.js b/js/pomf.js
index 1a11543..187aa58 100644
--- a/js/pomf.js
+++ b/js/pomf.js
@@ -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(