FIX: isFluid parameter for in-feed adsense units (#90)

Fixes issue in #89
This commit is contained in:
Lawrence Thorpe 2020-08-21 15:24:12 +01:00 committed by GitHub
parent 50788a876e
commit 8439608f17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,8 +191,8 @@ export default AdComponent.extend({
return showAd ? `adsense-${placement}`.htmlSafe() : ""; return showAd ? `adsense-${placement}`.htmlSafe() : "";
}, },
@discourseComputed("isResponsive") @discourseComputed("isResponsive", "isFluid")
autoAdFormat(isResponsive) { autoAdFormat(isResponsive, isFluid) {
return isResponsive ? (isFluid ? "fluid".htmlSafe() : "auto".htmlSafe()) : false; return isResponsive ? (isFluid ? "fluid".htmlSafe() : "auto".htmlSafe()) : false;
}, },