From 71e90c7b64e0315028e0f657cea85b5ebe9869f7 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Sun, 20 Jun 2021 16:50:42 +0300 Subject: [PATCH] Better support for non-production envs --- src/components/left/main/LeftMainHeader.tsx | 33 +++++++++++++-------- src/config.ts | 2 +- src/serviceWorker/pushNotification.ts | 2 +- webpack.config.js | 2 +- 4 files changed, 23 insertions(+), 16 deletions(-) diff --git a/src/components/left/main/LeftMainHeader.tsx b/src/components/left/main/LeftMainHeader.tsx index 56afcd3b4..b131067db 100644 --- a/src/components/left/main/LeftMainHeader.tsx +++ b/src/components/left/main/LeftMainHeader.tsx @@ -52,6 +52,7 @@ type DispatchProps = Pick = ({ }, 0); }, [hasMenu, chatsById]); + const withOtherVersions = window.location.hostname === PRODUCTION_HOSTNAME; + const MainButton: FC<{ onTrigger: () => void; isOpen?: boolean }> = useMemo(() => { return ({ onTrigger, isOpen }) => (