We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa129dc commit 45410ecCopy full SHA for 45410ec
sogs/static/view_room.js
@@ -10,7 +10,7 @@ const makebuffer = (raw) => {
10
return b.subarray(0, realLength);
11
};
12
13
-function formatBytes(bytes, decimals = 2) {
+const formatBytes = (bytes, decimals = 2) => {
14
if (bytes === 0) return '0 Bytes';
15
16
const k = 1024;
@@ -20,7 +20,7 @@ function formatBytes(bytes, decimals = 2) {
20
const i = Math.floor(Math.log(bytes) / Math.log(k));
21
22
return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
23
-}
+};
24
25
const setup = async () => {
26
const elem = document.getElementById("messages");
0 commit comments