mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-08 05:32:33 +01:00
This commit is contained in:
parent
ba8d07b3d0
commit
5b669b6091
3 changed files with 18 additions and 2 deletions
|
|
@ -2,6 +2,10 @@ export const isMobile = () => {
|
|||
return !document.getElementById("dockBottom");
|
||||
};
|
||||
|
||||
export const isTouchDevice = () => {
|
||||
return ("ontouchstart" in window) || navigator.maxTouchPoints > 0;
|
||||
};
|
||||
|
||||
export const isArrayEqual = (arr1: string[], arr2: string[]) => {
|
||||
return arr1.length === arr2.length && arr1.every((item) => arr2.includes(item));
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue