Skip to content

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

:art:

Vanessa0171572df5c8
diff --git a/app/src/asset/index.ts b/app/src/asset/index.ts
index ebc9b5580c..ffc27bdf60 100644
--- a/app/src/asset/index.ts
+++ b/app/src/asset/index.ts
@@ -2,8 +2,10 @@ import {Model} from "../layout/Model";
import {Tab} from "../layout/Tab";
import {Constants} from "../constants";
import {setPanelFocus} from "../layout/util";
-/// #if !MOBILE
+/// #if !BROWSER
import {setModelsHash} from "../window/setHeader";
+/// #endif
+/// #if !MOBILE
// @ts-ignore
import {webViewerLoad} from "./pdf/viewer";
// @ts-ignore
@@ -498,7 +500,9 @@ export class Asset extends Model {
this.element, this.pdfPage, this.pdfId);
this.element.setAttribute("data-loading", "true");
}
+ /// #if !BROWSER
setModelsHash();
+ /// #endif
}, Constants.TIMEOUT_BLOCKLOAD);
/// #endif
}