This commit is contained in:
Daniel 2025-02-13 15:24:41 +08:00
parent af1dac157e
commit 1dcdab24a7
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 10 additions and 3 deletions

View file

@ -151,6 +151,10 @@ export const isWin11 = async () => {
return false;
};
export const isWindows = () => {
return navigator.platform.toUpperCase().indexOf("WIN") > -1;
}
export const isInAndroid = () => {
return window.siyuan.config.system.container === "android" && window.JSAndroid;
};