Skip to content

Commit

Permalink
Fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
timolins committed Aug 24, 2021
1 parent 0027e31 commit b1d2382
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 && typeof window !== "undefined") {
if (shouldReduceMotion === undefined && typeof window !== 'undefined') {
const mediaQuery = matchMedia('(prefers-reduced-motion: reduce)');
shouldReduceMotion = !mediaQuery || mediaQuery.matches;
}
Expand Down

1 comment on commit b1d2382

@vercel
Copy link

@vercel vercel bot commented on b1d2382 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.