FIX: Catch exception if ads can't be rendered

This commit is contained in:
Robin Ward 2016-11-09 16:46:09 -05:00
parent a70491c720
commit 883d5ecd85
1 changed files with 5 additions and 1 deletions

View File

@ -116,11 +116,15 @@ export default Ember.Component.extend({
_triggerAds() {
const adsbygoogle = window.adsbygoogle || [];
adsbygoogle.push({});
try {
adsbygoogle.push({});
} catch (ex) { }
},
didInsertElement() {
this._super();
Ember.run.scheduleOnce('afterRender', this, this._triggerAds);
},