mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-28 04:13:44 +01:00
[Glitch] Remove unused iOS agent sniffing function
Port 224d458f7e
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
526fe33e2f
commit
a56c71faba
1 changed files with 0 additions and 6 deletions
|
@ -27,10 +27,6 @@ export const layoutFromWindow = (layout_local_setting : string): LayoutType => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-expect-error
|
|
||||||
const iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && window.MSStream != null;
|
|
||||||
|
|
||||||
const listenerOptions = supportsPassiveEvents ? { passive: true } : false;
|
const listenerOptions = supportsPassiveEvents ? { passive: true } : false;
|
||||||
|
|
||||||
let userTouching = false;
|
let userTouching = false;
|
||||||
|
@ -44,5 +40,3 @@ const touchListener = () => {
|
||||||
window.addEventListener('touchstart', touchListener, listenerOptions);
|
window.addEventListener('touchstart', touchListener, listenerOptions);
|
||||||
|
|
||||||
export const isUserTouching = () => userTouching;
|
export const isUserTouching = () => userTouching;
|
||||||
|
|
||||||
export const isIOS = () => iOS;
|
|
||||||
|
|
Loading…
Reference in a new issue