mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-06 04:40:15 +01:00
This commit is contained in:
parent
7f2e6202de
commit
67a0efee1b
6 changed files with 11 additions and 1 deletions
|
|
@ -9,6 +9,7 @@ import {blockRender} from "../../protyle/markdown/blockRender";
|
|||
import {disabledForeverProtyle, disabledProtyle, enableProtyle} from "../../protyle/util/onGet";
|
||||
import {setStorageVal} from "../../protyle/util/compatibility";
|
||||
import {closePanel} from "./closePanel";
|
||||
import {showMessage} from "../../dialog/message";
|
||||
|
||||
const forwardStack: IBackStack[] = [];
|
||||
|
||||
|
|
@ -133,7 +134,11 @@ export const goBack = () => {
|
|||
return;
|
||||
}
|
||||
if (window.JSAndroid && window.siyuan.backStack.length < 1) {
|
||||
window.JSAndroid.returnDesktop();
|
||||
if (document.querySelector('#message [data-id="exitTip"]')) {
|
||||
window.JSAndroid.returnDesktop();
|
||||
} else {
|
||||
showMessage(window.siyuan.languages.returnDesktop, 3000, "info", "exitTip");
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (window.siyuan.backStack.length < 1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue