From fedfd9b3209e8e91a06d1f85d25eeda4a89cc621 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 10 Jun 2022 00:14:34 +0800 Subject: [PATCH] :bug: https://github.com/siyuan-note/siyuan/issues/5144 --- app/src/util/newFile.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/src/util/newFile.ts b/app/src/util/newFile.ts index 482638da0..e1455a1aa 100644 --- a/app/src/util/newFile.ts +++ b/app/src/util/newFile.ts @@ -58,12 +58,8 @@ export const newFile = (notebookId?: string, currentPath?: string, open?: boolea title: data.data.name || window.siyuan.languages.untitled, md: "", }, () => { - if (open) { - if (isMobile()) { - openMobileFileById(id, true); - } else { - openFileById({id, hasContext: true, action: [Constants.CB_GET_HL]}); - } + if (open && !isMobile()) { + openFileById({id, hasContext: true, action: [Constants.CB_GET_HL]}); } }); });