fix ads blacklist

This commit is contained in:
zeppi 2021-02-02 23:29:33 -05:00 committed by jessopb
parent e8de12bf91
commit 958fb0b085

View file

@ -8,7 +8,7 @@ import I18nMessage from 'component/i18nMessage';
import Button from 'component/button'; import Button from 'component/button';
import classnames from 'classnames'; import classnames from 'classnames';
// $FlowFixMe // $FlowFixMe
import { ADS_CHANNEL_BLACKLIST } from 'homepages'; import { NO_ADS_CHANNEL_IDS } from 'homepages';
const ADS_URL = '//assets.revcontent.com/master/delivery.js'; const ADS_URL = '//assets.revcontent.com/master/delivery.js';
const IS_MOBILE = typeof window.orientation !== 'undefined'; const IS_MOBILE = typeof window.orientation !== 'undefined';
@ -44,7 +44,7 @@ function Ads(props: Props) {
const channelId = claim && claim.signing_channel && claim.signing_channel.claim_id; const channelId = claim && claim.signing_channel && claim.signing_channel.claim_id;
const isBlocked = isMature || (ADS_CHANNEL_BLACKLIST && ADS_CHANNEL_BLACKLIST.includes(channelId)); const isBlocked = isMature || (NO_ADS_CHANNEL_IDS && NO_ADS_CHANNEL_IDS.includes(channelId));
useEffect(() => { useEffect(() => {
if (SHOW_ADS && type === 'video') { if (SHOW_ADS && type === 'video') {
let script; let script;