diff --git a/src/App/UpdaterBanner/UpdaterBanner.tsx b/src/App/UpdaterBanner/UpdaterBanner.tsx index 6d3bfd932..b69b8828b 100644 --- a/src/App/UpdaterBanner/UpdaterBanner.tsx +++ b/src/App/UpdaterBanner/UpdaterBanner.tsx @@ -1,6 +1,7 @@ import React, { useEffect } from 'react'; import Icon from '@stremio/stremio-icons/react'; import { useTranslation } from 'react-i18next'; +import { useMatch } from 'react-router'; import { useBinaryState, usePlatform } from 'stremio/common'; import { Button, Transition } from 'stremio/components'; import styles from './UpdaterBanner.less'; @@ -13,6 +14,7 @@ const UpdaterBanner = ({ className }: Props) => { const { t } = useTranslation(); const { shell } = usePlatform(); const [visible, show, hide] = useBinaryState(false); + const isPlayer = useMatch('/player/:stream/*'); const onInstallClick = () => { shell.send('autoupdater-notif-clicked'); @@ -28,7 +30,7 @@ const UpdaterBanner = ({ className }: Props) => { return (
- +
{ t('UPDATER_TITLE') }