mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
85ad37af0a
commit
cdbb363ad9
4 changed files with 17 additions and 12 deletions
|
|
@ -89,6 +89,10 @@ export const isCtrl = (event: KeyboardEvent | MouseEvent) => {
|
|||
}
|
||||
};
|
||||
|
||||
export const isHuawei = () => {
|
||||
return window.siyuan.config.system.osPlatform.toLowerCase().indexOf("huawei") > -1;
|
||||
};
|
||||
|
||||
export const isMac = () => {
|
||||
return navigator.platform.toUpperCase().indexOf("MAC") > -1;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue