diff --git a/assets/javascripts/initializers/initialize-ad-plugin.js.es6 b/assets/javascripts/initializers/initialize-ad-plugin.js.es6 index 8971918..74aac40 100644 --- a/assets/javascripts/initializers/initialize-ad-plugin.js.es6 +++ b/assets/javascripts/initializers/initialize-ad-plugin.js.es6 @@ -6,14 +6,14 @@ export default { initialize(container) { const siteSettings = container.lookup('site-settings:main'); - PostModel.reopen({ - postSpecificCountDFP: function() { + PostModel.reopen({ + postSpecificCountDFP: function() { return this.isNthPost(parseInt(siteSettings.dfp_nth_post_code)); - }.property('post_number'), + }.property('post_number'), - postSpecificCountAdsense: function() { + postSpecificCountAdsense: function() { return this.isNthPost(parseInt(siteSettings.adsense_nth_post_code)); - }.property('post_number'), + }.property('post_number'), postSpecificCountAmazon: function() { return this.isNthPost(parseInt(siteSettings.amazon_nth_post_code)); @@ -26,7 +26,7 @@ export default { return false; } } - }); + }); withPluginApi('0.1', api => { api.decorateWidget('post:after', dec => {