Skip to content

Commit 4c42c18

Browse files
Update index.js
1 parent b0a62e3 commit 4c42c18

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

demo/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function getByteSize(raw) {
8888
const encoded = new TextEncoder().encode(JSON.stringify(raw));
8989
const bytes = encoded.length;
9090
const size = bytes / 1024;
91-
if(size > 0.9) return "1+";
91+
if(size > 10.9) return "10+";
9292
return size.toFixed(2);
9393
}
9494

0 commit comments

Comments
 (0)