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/auth/SetupAssistant.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/auth') diff --git a/src/components/auth/SetupAssistant.js b/src/components/auth/SetupAssistant.js index 06ab09892..0f821d4fc 100644 --- a/src/components/auth/SetupAssistant.js +++ b/src/components/auth/SetupAssistant.js @@ -37,7 +37,7 @@ const messages = defineMessages({ let transition = 'none'; -if (window.matchMedia('(prefers-reduced-motion: no-preference)')) { +if (window && window.matchMedia('(prefers-reduced-motion: no-preference)')) { transition = 'all 0.25s'; } -- cgit v1.2.3-70-g09d2