diff options
author | 2021-08-11 18:50:42 +0530 | |
---|---|---|
committer | 2021-08-11 13:38:04 +0000 | |
commit | 11c2b649388687570851fcb58ab59f5daaa3f194 (patch) | |
tree | 257acfbcc42e542978b67a1e4edccc87ca0be4a6 /src/components/layout/AppLayout.js | |
parent | 5.6.1-nightly.22 [skip ci] (diff) | |
download | ferdium-app-11c2b649388687570851fcb58ab59f5daaa3f194.tar.gz ferdium-app-11c2b649388687570851fcb58ab59f5daaa3f194.tar.zst ferdium-app-11c2b649388687570851fcb58ab59f5daaa3f194.zip |
revert: fixing #1757 by commenting out partial fix
- Fixes issue with ferdi not starting up.
- Also adds some defensive checks for the same code in other
repeated locations.
Diffstat (limited to 'src/components/layout/AppLayout.js')
-rw-r--r-- | src/components/layout/AppLayout.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/layout/AppLayout.js b/src/components/layout/AppLayout.js index de962cc12..d5e1deb39 100644 --- a/src/components/layout/AppLayout.js +++ b/src/components/layout/AppLayout.js | |||
@@ -47,7 +47,7 @@ const messages = defineMessages({ | |||
47 | 47 | ||
48 | let transition = 'none'; | 48 | let transition = 'none'; |
49 | 49 | ||
50 | if (window.matchMedia('(prefers-reduced-motion: no-preference)')) { | 50 | if (window && window.matchMedia('(prefers-reduced-motion: no-preference)')) { |
51 | transition = 'transform 0.5s ease'; | 51 | transition = 'transform 0.5s ease'; |
52 | } | 52 | } |
53 | 53 | ||