This commit is contained in:
yflory 2021-03-03 16:48:25 +01:00
parent 5a8bc88ac5
commit 629eb48562
1 changed files with 2 additions and 3 deletions

View File

@ -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