From bc907cbef5e4c52bb50da32f45751aafa286e0e9 Mon Sep 17 00:00:00 2001 From: FleetAdmiralJakob Date: Sun, 21 Jan 2024 18:53:11 +0100 Subject: [PATCH] fix(style): Fixed a type error from #86c29780 --- apps/web/src/components/Layout.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/apps/web/src/components/Layout.tsx b/apps/web/src/components/Layout.tsx index c6799947..02bc2491 100644 --- a/apps/web/src/components/Layout.tsx +++ b/apps/web/src/components/Layout.tsx @@ -20,17 +20,10 @@ interface LayoutProps { declare global { interface Window { - MSStream: any; + MSStream: unknown; } } -function isIOS() { - if (typeof window !== "undefined") { - return /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream; - } - return false; -} - /* If you use this component, you have to add the i18n translation SSR stuff to the getStaticProps function of the page you use this component in. */