Skip to content

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

:art: https://github.com/siyuan-note/siyuan/pull/17398

Daniel03a0e822a335
diff --git a/app/electron/main.js b/app/electron/main.js
index 08089ceb0e..218bfc7848 100644
--- a/app/electron/main.js
+++ b/app/electron/main.js
@@ -115,11 +115,9 @@ const windowNavigate = (currentWindow, windowType) => {
if (url.startsWith(localServer)) {
try {
const pathname = new URL(url).pathname;
- if (
- (windowType === "app" && ["/", "/stage/build/app/", "/check-auth"].includes(pathname) ||
- (windowType === "window" && ["/stage/build/app/window.html", "/check-auth"].includes(pathname))) ||
- (windowType === "export" && pathname.startsWith("/export/temp/"))
- ) {
+ if (windowType === "app" && ["/", "/stage/build/app/", "/check-auth"].includes(pathname) ||
+ (windowType === "window" && ["/stage/build/app/window.html", "/check-auth"].includes(pathname)) ||
+ (windowType === "export" && pathname.startsWith("/export/temp/"))) {
return;
}
} catch (e) {