Skip to content

Commit

Permalink
🐛 fix #12605
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Sep 26, 2024
1 parent e675379 commit a9cf3c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/dialog/processSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit a9cf3c5

Please sign in to comment.