Skip to content

Commit be5ee1c

Browse files
authored
EthicalAd: minor fix when checking isEnabled (#537)
This was causing the addon to break
1 parent a514310 commit be5ee1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ethicalads.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ export class EthicalAdsAddon extends AddonBase {
323323

324324
static isEnabled(config, httpStatus) {
325325
return (
326-
config.addons.ethicalads.ad_free === false &&
326+
objectPath.get(config, "addons.ethicalads.ad_free", false) === false &&
327327
super.isEnabled(config, httpStatus)
328328
);
329329
}

0 commit comments

Comments
 (0)