Skip to content

Commit

Permalink
Merge pull request #112 from Dev-CasperTheGhost/main
Browse files Browse the repository at this point in the history
  • Loading branch information
timolins authored Aug 24, 2021
2 parents d208114 + 46cc577 commit ddc56b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const prefersReducedMotion = (() => {
let shouldReduceMotion: boolean | undefined = undefined;

return () => {
if (shouldReduceMotion === undefined) {
if (shouldReduceMotion === undefined && typeof window !== "undefined") {
const mediaQuery = matchMedia('(prefers-reduced-motion: reduce)');
shouldReduceMotion = !mediaQuery || mediaQuery.matches;
}
Expand Down

1 comment on commit ddc56b0

@vercel
Copy link

@vercel vercel bot commented on ddc56b0 Aug 24, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.