From 77d613389e3178a6133702c15c0f636dcc7bff11 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Tue, 7 Nov 2023 22:40:43 +0000 Subject: [PATCH] DEV: Log errors from adsense --- assets/javascripts/discourse/components/google-adsense.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); + } }); },