diff --git a/assets/javascripts/discourse/components/google-adsense.js.es6 b/assets/javascripts/discourse/components/google-adsense.js.es6 index 20ba2a1..9078f10 100644 --- a/assets/javascripts/discourse/components/google-adsense.js.es6 +++ b/assets/javascripts/discourse/components/google-adsense.js.es6 @@ -37,13 +37,8 @@ PageTracker.current().on('change', function(url) { } // Reinitialize script so that the ad can reload - // window.adsbygoogle = []; var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.id="adsense_loader"; ga.src = '//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'; -// Creates array of postGoogle vars which are only elements starting with 'google' related to -// Adsense's googleads. This array is used in line 34 to undefine google elements related to Adsense only. - - // Puts relevant elements back into script. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); }); diff --git a/assets/javascripts/discourse/templates/components/google-adsense.hbs b/assets/javascripts/discourse/templates/components/google-adsense.hbs index 280fdcd..1401e5d 100644 --- a/assets/javascripts/discourse/templates/components/google-adsense.hbs +++ b/assets/javascripts/discourse/templates/components/google-adsense.hbs @@ -1,29 +1,27 @@ {{#if site.mobileView}} -