From d04565e58808f8fbc2e696c32001d6534e327d45 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 19 Oct 2025 18:17:47 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/16152 --- app/src/protyle/export/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.ts index 8ab42b08e..8206ce1fd 100644 --- a/app/src/protyle/export/index.ts +++ b/app/src/protyle/export/index.ts @@ -634,6 +634,7 @@ const getExportPath = (option: IExportOptions, removeAssets?: boolean, mergeSubd } }); }; +/// #endif export const onExport = async (data: IWebSocketData, filePath: string, exportOption: IExportOptions, removeAssets?: boolean, msgId?: string) => { let themeName = window.siyuan.config.appearance.themeLight; @@ -715,8 +716,9 @@ id="preview">${data.data.content} if (typeof filePath === "undefined") { return html; } + /// #if !BROWSER const htmlPath = path.join(filePath, "index.html"); fs.writeFileSync(htmlPath, html); afterExport(htmlPath, msgId); + /// #endif }; -/// #endif