From 221fa1d76f87530387ddd7e3ecef5a023a57b473 Mon Sep 17 00:00:00 2001 From: Valery Melou Date: Sun, 21 Jul 2024 04:59:53 +0100 Subject: [PATCH] refactor: fix animations on mobile devices --- libs/shared/layout/src/lib/animations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/shared/layout/src/lib/animations.ts b/libs/shared/layout/src/lib/animations.ts index a14432a..367c359 100644 --- a/libs/shared/layout/src/lib/animations.ts +++ b/libs/shared/layout/src/lib/animations.ts @@ -10,7 +10,7 @@ import { } from '@angular/animations'; function isMobile() { - if (typeof window === 'undefined' || typeof window.document !== 'undefined') return false; + if (typeof window === 'undefined') return false; return matchMedia('(max-width: 768px)').matches; }