mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-09 16:54:21 +01:00
This commit is contained in:
parent
ddae80a5f4
commit
3ac342dcf3
2 changed files with 13 additions and 2 deletions
|
|
@ -301,7 +301,12 @@ export const exitSiYuan = async (setCurrentWorkspace = true) => {
|
|||
window.JSAndroid.exit();
|
||||
return;
|
||||
}
|
||||
if (isInIOS() || isInHarmony()) {
|
||||
if (isInIOS()) {
|
||||
window.webkit.messageHandlers.exit.postMessage();
|
||||
return;
|
||||
}
|
||||
|
||||
if (isInHarmony()) {
|
||||
window.location.href = "siyuan://api/system/exit";
|
||||
}
|
||||
/// #endif
|
||||
|
|
@ -352,7 +357,12 @@ export const exitSiYuan = async (setCurrentWorkspace = true) => {
|
|||
window.JSAndroid.exit();
|
||||
return;
|
||||
}
|
||||
if (isInIOS() || isInHarmony()) {
|
||||
if (isInIOS()) {
|
||||
window.webkit.messageHandlers.exit.postMessage();
|
||||
return;
|
||||
}
|
||||
|
||||
if (isInHarmony()) {
|
||||
window.location.href = "siyuan://api/system/exit";
|
||||
}
|
||||
/// #endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue