Re-enable for Firefox Android

Since we are temporarily disabling the floating ad, it means that the invisible close button issue in Firefox Android is also temporarily not an issue.
This commit is contained in:
infinite-persistence 2022-03-08 17:32:51 +08:00 committed by Thomas Zarebczan
parent cdcedb8063
commit 0fa20114be

View file

@ -29,9 +29,9 @@ const IS_IOS =
(navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1)) &&
!window.MSStream;
const IS_ANDROID = /Android/i.test(navigator.userAgent);
const IS_FIREFOX = /Firefox/i.test(navigator.userAgent);
// const IS_FIREFOX = /Firefox/i.test(navigator.userAgent);
const isFirefoxAndroid = IS_ANDROID && IS_FIREFOX;
// const isFirefoxAndroid = IS_ANDROID && IS_FIREFOX;
type Props = {
location: { pathname: string },
@ -59,7 +59,7 @@ function Ads(props: Props) {
className,
} = props;
const shouldShowAds = SHOW_ADS && !authenticated && !isFirefoxAndroid;
const shouldShowAds = SHOW_ADS && !authenticated;
const mobileAds = IS_ANDROID || IS_IOS;
// this is populated from app based on location