Remove unused iOS agent sniffing function (#24931)

pull/62/head
Renaud Chaput 2023-05-09 15:48:53 +02:00 committed by GitHub
parent 72dcb2ef58
commit 224d458f7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 6 deletions

View File

@ -16,10 +16,6 @@ export const layoutFromWindow = (): 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;
let userTouching = false;
@ -33,5 +29,3 @@ const touchListener = () => {
window.addEventListener('touchstart', touchListener, listenerOptions);
export const isUserTouching = () => userTouching;
export const isIOS = () => iOS;