summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-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(