Browse Source

:art: https://github.com/siyuan-note/siyuan/issues/12963

Vanessa 8 months ago
parent
commit
36f3c3fcab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/src/protyle/util/onGet.ts

+ 1 - 1
app/src/protyle/util/onGet.ts

@@ -250,7 +250,7 @@ const setHTML = (options: {
     }
 
     /// #if MOBILE
-    if (!protyle.disabled && !options.action.includes(Constants.CB_GET_ALL)) {
+    if (!protyle.disabled && !options.action.includes(Constants.CB_GET_ALL) && protyle.background) {
         protyle.background.element.classList.add("protyle-background--mobileshow");
     }
     /// #endif