Skip to content

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

:rotating_light:

Vanessa2f58714b7996
diff --git a/app/src/asset/index.ts b/app/src/asset/index.ts
index 24cafd54d6..6ba5113d64 100644
--- a/app/src/asset/index.ts
+++ b/app/src/asset/index.ts
@@ -424,7 +424,7 @@ export class Asset extends Model {
</div>
</div> <!-- outerContainer -->
<div id="printContainer"></div>`;
- const localPDF = window.siyuan.storage[Constants.LOCAL_PDFTHEME]
+ const localPDF = window.siyuan.storage[Constants.LOCAL_PDFTHEME];
const pdfTheme = window.siyuan.config.appearance.mode === 0 ? localPDF.light : localPDF.dark;
const darkElement = this.element.querySelector("#pdfDark");
const lightElement = this.element.querySelector("#pdfLight");
diff --git a/app/src/protyle/util/compatibility.ts b/app/src/protyle/util/compatibility.ts
index ebd61de466..41b63d20bc 100644
--- a/app/src/protyle/util/compatibility.ts
+++ b/app/src/protyle/util/compatibility.ts
@@ -141,14 +141,14 @@ export const hotKey2Electron = (key: string) => {
export const setLocalStorage = (data?: IWebSocketData) => {
if (data) {
- setDefaultStorage(data)
+ setDefaultStorage(data);
} else {
fetchPost("/api/storage/getLocalStorage", undefined, (response) => {
- setDefaultStorage(response)
+ setDefaultStorage(response);
});
}
-
};
+
const setDefaultStorage = (response: IWebSocketData) => {
window.siyuan.storage = response.data;
// 历史数据迁移
@@ -218,7 +218,7 @@ const setDefaultStorage = (response: IWebSocketData) => {
window.siyuan.storage[key] = defaultStorage[key];
}
});
-}
+};
export const exportLocalStorage = (cb?: () => void) => {
fetchPost("/api/storage/setLocalStorage", {val: window.siyuan.storage}, () => {