diff --git a/assets/javascripts/discourse/components/adbutler-ad.js.es6 b/assets/javascripts/discourse/components/adbutler-ad.js.es6 index 180d62a..da22f50 100644 --- a/assets/javascripts/discourse/components/adbutler-ad.js.es6 +++ b/assets/javascripts/discourse/components/adbutler-ad.js.es6 @@ -76,9 +76,9 @@ export default AdComponent.extend({ function() { if (this.divs.length > 0) { let abkw = window.abkw || ""; - AdButler.ads.push({ + window.AdButler.ads.push({ handler: function(opt) { - AdButler.register( + window.AdButler.register( opt.place.publisherId, opt.place.zoneId, opt.place.dimensions,