From 42a100ef0e4ec9681dad66029912c7748baf33bc Mon Sep 17 00:00:00 2001 From: Juuso Lapinlampi Date: Sun, 27 Sep 2015 22:02:53 +0000 Subject: Add pomf.js parseInt() radix 10 Fixes ESLint radix warning using Airbnb ES5 config. --- js/pomf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( -- cgit v1.2.3