From a9cf3c5f5b325684bd2b5af9f22d6dbf0946ab0c Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 27 Sep 2024 00:22:20 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/12605 --- app/src/dialog/processSystem.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/dialog/processSystem.ts b/app/src/dialog/processSystem.ts index 952153062..e4deb40f7 100644 --- a/app/src/dialog/processSystem.ts +++ b/app/src/dialog/processSystem.ts @@ -280,11 +280,11 @@ export const kernelError = () => { } }; -export const exitSiYuan = () => { +export const exitSiYuan = async () => { hideAllElements(["util"]); /// #if MOBILE if (window.siyuan.mobile.editor) { - saveScroll(window.siyuan.mobile.editor.protyle); + await saveScroll(window.siyuan.mobile.editor.protyle); } /// #endif fetchPost("/api/system/exit", {force: false}, (response) => {