From 11c2b649388687570851fcb58ab59f5daaa3f194 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Wed, 11 Aug 2021 18:50:42 +0530 Subject: 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. --- src/components/ui/AppLoader/styles.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/ui') diff --git a/src/components/ui/AppLoader/styles.js b/src/components/ui/AppLoader/styles.js index 011f6282d..9891e0387 100644 --- a/src/components/ui/AppLoader/styles.js +++ b/src/components/ui/AppLoader/styles.js @@ -1,6 +1,6 @@ let sloganTransition = 'none'; -if (window.matchMedia('(prefers-reduced-motion: no-preference)')) { +if (window && window.matchMedia('(prefers-reduced-motion: no-preference)')) { sloganTransition = 'opacity 1s ease'; } -- cgit v1.2.3-70-g09d2