Merge branch 'nightly' into python3

This commit is contained in:
JonnyWong16 2020-03-29 10:30:15 -07:00
commit c1a7b3753c
3 changed files with 3 additions and 3 deletions

View file

@ -461,7 +461,7 @@ $('*').on('click', '.refresh_pms_image', function (e) {
});
// Taken from http://stackoverflow.com/questions/10420352/converting-file-size-in-bytes-to-human-readable#answer-14919494
function humanFileSize(bytes, si) {
function humanFileSize(bytes, si = true) {
var thresh = si ? 1000 : 1024;
if (Math.abs(bytes) < thresh) {
return bytes + ' B';