diff --git a/frontend/app/components/Spots/SpotsList/InstallCTA.tsx b/frontend/app/components/Spots/SpotsList/InstallCTA.tsx index 046a96971..1eee4e1b3 100644 --- a/frontend/app/components/Spots/SpotsList/InstallCTA.tsx +++ b/frontend/app/components/Spots/SpotsList/InstallCTA.tsx @@ -1,4 +1,4 @@ -import React from 'react' +import React from 'react'; import { ChromeOutlined } from '@ant-design/icons'; import { Alert, Button } from 'antd'; import { ArrowUpRight } from 'lucide-react'; @@ -6,6 +6,13 @@ import { ArrowUpRight } from 'lucide-react'; function InstallCTA() { const extKey = '__$spot_ext_exist$__'; const [extExist, setExtExist] = React.useState(false); + const isChromium = + // @ts-ignore + window.chrome || + // @ts-ignore + (!!navigator.userAgentData && + // @ts-ignore + navigator.userAgentData.brands.some((data) => data.brand == 'Chromium')); React.useEffect(() => { let int: any; @@ -33,9 +40,20 @@ function InstallCTA() { } }; }, []); + + if (!isChromium && !extExist) { + return ( + + ); + } + return ( <> - {extExist ? null : ( + {extExist ? null : ( )} - ) + ); } -export default InstallCTA \ No newline at end of file +export default InstallCTA;