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;