Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:recycle: https://github.com/siyuan-note/siyuan/pull/15325

Vanessab1a04d67d91d
diff --git a/app/src/protyle/util/compatibility.ts b/app/src/protyle/util/compatibility.ts
index 9201f7fb8b..d2041419a1 100644
--- a/app/src/protyle/util/compatibility.ts
+++ b/app/src/protyle/util/compatibility.ts
@@ -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);