An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: fix https://github.com/siyuan-note/siyuan/issues/7283
Vanessa9044438108d1
diff --git a/app/src/asset/pdf/view_history.js b/app/src/asset/pdf/view_history.jsindex 999a38464d..a05e27450d 100644--- a/app/src/asset/pdf/view_history.js+++ b/app/src/asset/pdf/view_history.js@@ -13,6 +13,8 @@* limitations under the License.*/+import {setStorageVal} from "../../protyle/util/compatibility";+const DEFAULT_VIEW_HISTORY_CACHE_SIZE = 20;/**@@ -62,14 +64,17 @@ class ViewHistory {sessionStorage.setItem("pdfjs.history", databaseStr);return;}- localStorage.setItem("pdfjs.history", databaseStr);+ // NOTE+ window.siyuan.storage["pdfjs.history"] = databaseStr+ setStorageVal("pdfjs.history", databaseStr)}async _readFromStorage() {if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("MOZCENTRAL")) {return sessionStorage.getItem("pdfjs.history");}- return localStorage.getItem("pdfjs.history");+ // NOTE+ return window.siyuan.storage["pdfjs.history"];}async set(name, val) {