From b4db8221efb2374887ec21a664d9696a42bebd16 Mon Sep 17 00:00:00 2001 From: Dalton Menezes Date: Fri, 13 Sep 2024 22:54:25 -0300 Subject: [PATCH] fix: disable vortex component on firefox due very laggy issues --- apps/web/src/components/ui/vortex.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/web/src/components/ui/vortex.tsx b/apps/web/src/components/ui/vortex.tsx index b50792a..2d3eb99 100644 --- a/apps/web/src/components/ui/vortex.tsx +++ b/apps/web/src/components/ui/vortex.tsx @@ -242,6 +242,14 @@ export const Vortex = (props: VortexProps) => { // eslint-disable-next-line }, []); + if (typeof window === 'undefined') return null + + /** + * Firefox has some issues with this component and becomes very laggy + * so we are disabling it for Firefox for now + * */ + if (window.navigator.userAgent.includes('Firefox')) return null + return (