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; }