Vanessa 2023-08-03 12:37:14 +08:00
parent 85ad37af0a
commit cdbb363ad9
4 changed files with 17 additions and 12 deletions

View file

@ -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;
};