mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
This commit is contained in:
parent
0019a6d8d4
commit
b1a04d67d9
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ export const encodeBase64 = (text: string): string => {
|
|||
|
||||
for (let i = 0; i < bytes.length; i += chunkSize) {
|
||||
const chunk = bytes.subarray(i, Math.min(i + chunkSize, bytes.length));
|
||||
binary += String.fromCharCode.apply(null, chunk);
|
||||
binary += String.fromCharCode(...chunk);
|
||||
}
|
||||
|
||||
return btoa(binary);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue