diff options
Diffstat (limited to 'src/features')
3 files changed, 3 insertions, 3 deletions
diff --git a/src/features/webControls/components/WebControls.js b/src/features/webControls/components/WebControls.js index 417ebb0b0..9a95eb2d2 100644 --- a/src/features/webControls/components/WebControls.js +++ b/src/features/webControls/components/WebControls.js | |||
@@ -38,7 +38,7 @@ const messages = defineMessages({ | |||
38 | 38 | ||
39 | let buttonTransition = 'none'; | 39 | let buttonTransition = 'none'; |
40 | 40 | ||
41 | if (window.matchMedia('(prefers-reduced-motion: no-preference)')) { | 41 | if (window && window.matchMedia('(prefers-reduced-motion: no-preference)')) { |
42 | buttonTransition = 'opacity 0.25s'; | 42 | buttonTransition = 'opacity 0.25s'; |
43 | } | 43 | } |
44 | 44 | ||
diff --git a/src/features/workspaces/components/WorkspaceDrawerItem.js b/src/features/workspaces/components/WorkspaceDrawerItem.js index c3f9fcb19..f08e87bd7 100644 --- a/src/features/workspaces/components/WorkspaceDrawerItem.js +++ b/src/features/workspaces/components/WorkspaceDrawerItem.js | |||
@@ -20,7 +20,7 @@ const messages = defineMessages({ | |||
20 | 20 | ||
21 | let itemTransition = 'none'; | 21 | let itemTransition = 'none'; |
22 | 22 | ||
23 | if (window.matchMedia('(prefers-reduced-motion: no-preference)')) { | 23 | if (window && window.matchMedia('(prefers-reduced-motion: no-preference)')) { |
24 | itemTransition = 'background-color 300ms ease-out'; | 24 | itemTransition = 'background-color 300ms ease-out'; |
25 | } | 25 | } |
26 | 26 | ||
diff --git a/src/features/workspaces/components/WorkspaceSwitchingIndicator.js b/src/features/workspaces/components/WorkspaceSwitchingIndicator.js index 613075c4a..c8ec0bc4c 100644 --- a/src/features/workspaces/components/WorkspaceSwitchingIndicator.js +++ b/src/features/workspaces/components/WorkspaceSwitchingIndicator.js | |||
@@ -17,7 +17,7 @@ const messages = defineMessages({ | |||
17 | 17 | ||
18 | let wrapperTransition = 'none'; | 18 | let wrapperTransition = 'none'; |
19 | 19 | ||
20 | if (window.matchMedia('(prefers-reduced-motion: no-preference)')) { | 20 | if (window && window.matchMedia('(prefers-reduced-motion: no-preference)')) { |
21 | wrapperTransition = 'width 0.5s ease'; | 21 | wrapperTransition = 'width 0.5s ease'; |
22 | } | 22 | } |
23 | 23 | ||