mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-08 05:32:33 +01:00
This commit is contained in:
parent
7630cbb291
commit
e1569cf1ea
2 changed files with 9 additions and 4 deletions
|
|
@ -109,9 +109,14 @@ export const goForward = () => {
|
|||
};
|
||||
|
||||
export const goBack = () => {
|
||||
if (window.JSAndroid && window.siyuan.backStack.length < 1) {
|
||||
window.JSAndroid.returnDesktop();
|
||||
return;
|
||||
if (window.JSAndroid) {
|
||||
if (window.siyuan.menus.menu.element.classList.contains("b3-menu--fullscreen") && !window.siyuan.menus.menu.element.classList.contains("fn__none")) {
|
||||
window.siyuan.menus.menu.element.dispatchEvent(new CustomEvent("click", {detail: "back"}))
|
||||
return;
|
||||
} else if (window.siyuan.backStack.length < 1) {
|
||||
window.JSAndroid.returnDesktop();
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (window.siyuan.backStack.length < 1) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue