瀏覽代碼

reduced buffer size

Gildas 7 年之前
父節點
當前提交
a4391a6d54
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/single-file/vendor/base64.js

+ 1 - 1
lib/single-file/vendor/base64.js

@@ -144,7 +144,7 @@ this.base64 = this.base64 || (() => {
 		const len = uint8.length;
 		const extraBytes = len % 3; // if we have 1 byte left, pad 2 bytes
 		const parts = [];
-		const maxChunkLength = 1572864; // must be multiple of 3
+		const maxChunkLength = 196608; // must be multiple of 3
 
 		// go through the array every three bytes, we"ll deal with trailing stuff later
 		for (let i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {