Skip to content

Commit

Permalink
refactor: fix animations on mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
valerymelou committed Jul 21, 2024
1 parent 14efc57 commit 221fa1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/shared/layout/src/lib/animations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 221fa1d

Please sign in to comment.