mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 16:10:12 +01:00
🎨 Support HarmonyOS NEXT system https://github.com/siyuan-note/siyuan/issues/13184
This commit is contained in:
parent
8639955ff0
commit
65f55b0dbe
15 changed files with 58 additions and 49 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue