From bba40d278f70a210df1a262fb949e95f39ed377b Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 30 Oct 2023 00:40:59 +0800 Subject: [PATCH] :art: --- app/src/util/newFile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/util/newFile.ts b/app/src/util/newFile.ts index c5913d455..02e8d951c 100644 --- a/app/src/util/newFile.ts +++ b/app/src/util/newFile.ts @@ -51,7 +51,7 @@ export const getNewFilePath = (useSavePath: boolean) => { } } /// #else - if (window.siyuan.mobile.editor) { + if (window.siyuan.mobile.editor && document.getElementById("empty").classList.contains("fn__none")) { notebookId = window.siyuan.mobile.editor.protyle.notebookId; if (useSavePath) { currentPath = window.siyuan.mobile.editor.protyle.path;