Skip to content

Commit e87fb43

Browse files
committed
🎨 #17560
1 parent 0312bb7 commit e87fb43

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

app/src/dialog/processSystem.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,15 @@ export const reloadSync = (
5050
hideMessage();
5151
}
5252
/// #if MOBILE
53-
if (window.siyuan.mobile.popEditor) {
53+
if (window.siyuan.mobile.popEditor && window.siyuan.mobile.popEditor.protyle) {
5454
if (data.removeRootIDs.includes(window.siyuan.mobile.popEditor.protyle.block.rootID)) {
5555
hideElements(["dialog"]);
5656
} else {
5757
reloadProtyle(window.siyuan.mobile.popEditor.protyle, false, updateReadonly);
5858
}
5959
}
60-
if (window.siyuan.mobile.editor) {
60+
if (document.getElementById("empty").classList.contains("fn__none") &&
61+
window.siyuan.mobile.editor && window.siyuan.mobile.editor.protyle) {
6162
if (data.removeRootIDs.includes(window.siyuan.mobile.editor.protyle.block.rootID)) {
6263
setEmpty(app);
6364
} else {

0 commit comments

Comments
 (0)