script error

This commit is contained in:
zeppi 2021-02-02 23:45:02 -05:00 committed by jessopb
parent 958fb0b085
commit ac6bf00b93

View file

@ -85,7 +85,7 @@ function Ads(props: Props) {
useEffect(() => {
let script;
if (SHOW_ADS && type === 'google') {
if (SHOW_ADS && type === 'google' && !isBlocked) {
const d = document;
if (!d.getElementById('googleadscriptid')) {
try {
@ -111,7 +111,7 @@ function Ads(props: Props) {
clearTimeout(googleInit);
}
};
}, [type]);
}, [type, isBlocked]);
const googleAd = (
<div className="ads__related--google">