diff --git a/assets/javascripts/discourse/components/google-adsense.js b/assets/javascripts/discourse/components/google-adsense.js index 00635ddb..a2eed308 100644 --- a/assets/javascripts/discourse/components/google-adsense.js +++ b/assets/javascripts/discourse/components/google-adsense.js @@ -152,7 +152,10 @@ export default AdComponent.extend({ try { adsbygoogle.push({}); // ask AdSense to fill one ad unit - } catch (ex) {} + } catch (ex) { + // eslint-disable-next-line no-console + console.error("Adsense error:", ex); + } }); },