mirror of
https://github.com/discourse/discourse-adplugin.git
synced 2025-07-07 13:52:12 +00:00
FIX: ads always showing in all placements for CodeFund and Carbon Ads
Checkboxes used to choose which placements to have ads were not handled correctly.
This commit is contained in:
parent
dee02ac3ba
commit
71c51ebd8b
@ -117,7 +117,11 @@ export default AdComponent.extend({
|
|||||||
}${placeUnderscored}_code`;
|
}${placeUnderscored}_code`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (name !== false && !Ember.isBlank(this.siteSettings[name])) {
|
if (
|
||||||
|
name !== false &&
|
||||||
|
this.siteSettings[name] !== false &&
|
||||||
|
!Ember.isBlank(this.siteSettings[name])
|
||||||
|
) {
|
||||||
types.push(adNetwork);
|
types.push(adNetwork);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user