Skip to content

Commit

Permalink
DEV: Log errors from adsense (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaylorhq committed Nov 7, 2023
1 parent c88bb59 commit 789be84
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion assets/javascripts/discourse/components/google-adsense.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});
},

Expand Down

0 comments on commit 789be84

Please sign in to comment.