From 629eb48562b0a739c318befc18b6cb7193396105 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 3 Mar 2021 16:48:25 +0100 Subject: [PATCH] ??? --- www/common/common-util.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/www/common/common-util.js b/www/common/common-util.js index e98b37009..9ea892702 100644 --- a/www/common/common-util.js +++ b/www/common/common-util.js @@ -269,9 +269,8 @@ Util.magnitudeOfBytes = function (bytes) { if (bytes >= oneGigabyte) { return 'GB'; } - // smallest supported format is MB to preserve existing behaviour - else /* if (bytes >= oneMegabyte) */ { return 'MB'; } - //else { return 'KB'; } + else if (bytes >= oneMegabyte) { return 'MB'; } + else { return 'KB'; } }; // given a path, asynchronously return an arraybuffer