script error
This commit is contained in:
parent
958fb0b085
commit
ac6bf00b93
1 changed files with 2 additions and 2 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Reference in a new issue