Skip to content

Commit

Permalink
🎨 #12425
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Sep 30, 2024
1 parent 2dab88c commit 800286e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app/src/protyle/header/Background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,12 +416,6 @@ export class Background {
target = target.parentElement;
}
});

/// #if MOBILE
if (!protyle.disabled) {
this.element.classList.add("protyle-background--mobileshow");
}
/// #endif
}

private removeTag(protyle: IProtyle) {
Expand Down
6 changes: 6 additions & 0 deletions app/src/protyle/util/onGet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,12 @@ const setHTML = (options: {
return;
}

/// #if MOBILE
if (!protyle.disabled && !options.action.includes(Constants.CB_GET_ALL)) {
protyle.background.element.classList.add("protyle-background--mobileshow");
}
/// #endif

if (protyle.options.render.breadcrumb) {
protyle.breadcrumb.toggleExit(!options.action.includes(Constants.CB_GET_ALL));
protyle.breadcrumb.render(protyle);
Expand Down

0 comments on commit 800286e

Please sign in to comment.