mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Bugfix: missing space between number and 'Bytes'
This commit is contained in:
parent
59c1392b2c
commit
fd5940f5fc
1 changed files with 1 additions and 1 deletions
|
|
@ -297,7 +297,7 @@ export const FileInfo = {
|
||||||
friendlySize: bytes => {
|
friendlySize: bytes => {
|
||||||
bytes = parseInt(bytes, 10) || 0;
|
bytes = parseInt(bytes, 10) || 0;
|
||||||
let i = Math.floor(Math.log(bytes) / Math.log(1024));
|
let i = Math.floor(Math.log(bytes) / Math.log(1024));
|
||||||
return (bytes / Math.pow(1024, i)).toFixed(2>i ? 0 : 1) + sizes[i];
|
return (bytes / Math.pow(1024, i)).toFixed(2>i ? 0 : 1) + ' ' + sizes[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue