disable ads on android firefox

This commit is contained in:
Anthony 2021-12-13 18:05:58 +01:00 committed by Thomas Zarebczan
parent b34de2d5cf
commit 5f874e44a7

View file

@ -139,15 +139,15 @@ function Ads(props: Props) {
</div> </div>
); );
// dont show if ads disabled on instance, blacklist word matched
if (!SHOW_ADS || triggerBlacklist) { if (!SHOW_ADS || triggerBlacklist) {
return false; return false;
} }
// sidebar ad // disable ads for firefox android because they don't work properly
if (isFirefoxAndroid) return false;
// sidebar ad (in recommended videos)
if (type === 'video') { if (type === 'video') {
// don't run sidebar ad on Android Firefox because it errors out
if (isFirefoxAndroid) {
return false;
}
return videoAd; return videoAd;
} }
if (type === 'homepage') { if (type === 'homepage') {