diff options
author | Vijay A <avijayr@protonmail.com> | 2021-08-11 18:50:42 +0530 |
---|---|---|
committer | Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com> | 2021-08-11 13:38:04 +0000 |
commit | 11c2b649388687570851fcb58ab59f5daaa3f194 (patch) | |
tree | 257acfbcc42e542978b67a1e4edccc87ca0be4a6 /packages/forms/src/button/index.tsx | |
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 'packages/forms/src/button/index.tsx')
-rw-r--r-- | packages/forms/src/button/index.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/forms/src/button/index.tsx b/packages/forms/src/button/index.tsx index 0aef04a6c..48fb61635 100644 --- a/packages/forms/src/button/index.tsx +++ b/packages/forms/src/button/index.tsx | |||
@@ -38,7 +38,7 @@ interface IProps extends IFormField, IWithStyle { | |||
38 | let buttonTransition: string = 'none'; | 38 | let buttonTransition: string = 'none'; |
39 | let loaderContainerTransition: string = 'none'; | 39 | let loaderContainerTransition: string = 'none'; |
40 | 40 | ||
41 | if (window.matchMedia('(prefers-reduced-motion: no-preference)')) { | 41 | if (window && window.matchMedia('(prefers-reduced-motion: no-preference)')) { |
42 | buttonTransition = 'background .5s, opacity 0.3s'; | 42 | buttonTransition = 'background .5s, opacity 0.3s'; |
43 | loaderContainerTransition = 'all 0.3s'; | 43 | loaderContainerTransition = 'all 0.3s'; |
44 | } | 44 | } |