mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Support HarmonyOS NEXT system https://github.com/siyuan-note/siyuan/issues/13184
This commit is contained in:
@@ -23,7 +23,7 @@ import {setEmpty} from "../mobile/util/setEmpty";
|
||||
import {hideAllElements, hideElements} from "../protyle/ui/hideElements";
|
||||
import {App} from "../index";
|
||||
import {saveScroll} from "../protyle/scroll/saveScroll";
|
||||
import {isInAndroid, isInIOS, setStorageVal} from "../protyle/util/compatibility";
|
||||
import {isInAndroid, isInHarmony, isInIOS, setStorageVal} from "../protyle/util/compatibility";
|
||||
import {Plugin} from "../plugin";
|
||||
|
||||
const updateTitle = (rootID: string, tab: Tab, protyle?: IProtyle) => {
|
||||
@@ -301,7 +301,7 @@ export const exitSiYuan = async () => {
|
||||
/// #if !BROWSER
|
||||
ipcRenderer.send(Constants.SIYUAN_QUIT, location.port);
|
||||
/// #else
|
||||
if (isInIOS() || isInAndroid()) {
|
||||
if (isInIOS() || isInAndroid() || isInHarmony()) {
|
||||
window.location.href = "siyuan://api/system/exit";
|
||||
}
|
||||
/// #endif
|
||||
@@ -341,7 +341,7 @@ export const exitSiYuan = async () => {
|
||||
/// #if !BROWSER
|
||||
ipcRenderer.send(Constants.SIYUAN_QUIT, location.port);
|
||||
/// #else
|
||||
if (isInIOS() || isInAndroid()) {
|
||||
if (isInIOS() || isInAndroid() || isInHarmony()) {
|
||||
window.location.href = "siyuan://api/system/exit";
|
||||
}
|
||||
/// #endif
|
||||
|
||||
Reference in New Issue
Block a user