From b21d2eaeb68675fa21ebafc7ff777de70c58398a Mon Sep 17 00:00:00 2001 From: Renaud Chaput Date: Tue, 9 May 2023 15:48:53 +0200 Subject: [PATCH] [Glitch] Remove unused iOS agent sniffing function Port d57be2731c24bba01a2137a22e3b8b916f5be8ab to glitch-soc Signed-off-by: Claire --- app/javascript/flavours/glitch/is_mobile.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/javascript/flavours/glitch/is_mobile.ts b/app/javascript/flavours/glitch/is_mobile.ts index d33246882d..a3437d28b1 100644 --- a/app/javascript/flavours/glitch/is_mobile.ts +++ b/app/javascript/flavours/glitch/is_mobile.ts @@ -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; let userTouching = false; @@ -44,5 +40,3 @@ const touchListener = () => { window.addEventListener('touchstart', touchListener, listenerOptions); export const isUserTouching = () => userTouching; - -export const isIOS = () => iOS;