diff options
Diffstat (limited to 'src/components/services/content/ConnectionLostBanner.tsx')
-rw-r--r-- | src/components/services/content/ConnectionLostBanner.tsx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/components/services/content/ConnectionLostBanner.tsx b/src/components/services/content/ConnectionLostBanner.tsx index 88731f3b9..7040337f0 100644 --- a/src/components/services/content/ConnectionLostBanner.tsx +++ b/src/components/services/content/ConnectionLostBanner.tsx | |||
@@ -21,10 +21,11 @@ const messages = defineMessages({ | |||
21 | }, | 21 | }, |
22 | }); | 22 | }); |
23 | 23 | ||
24 | const buttonTransition = | 24 | const buttonTransition = window?.matchMedia( |
25 | window && window.matchMedia('(prefers-reduced-motion: no-preference)') | 25 | '(prefers-reduced-motion: no-preference)', |
26 | ? 'opacity 0.25s' | 26 | ) |
27 | : 'none'; | 27 | ? 'opacity 0.25s' |
28 | : 'none'; | ||
28 | 29 | ||
29 | const styles = theme => ({ | 30 | const styles = theme => ({ |
30 | root: { | 31 | root: { |