Skip to content
This repository has been archived by the owner on Nov 26, 2021. It is now read-only.

Commit

Permalink
this.reportError
Browse files Browse the repository at this point in the history
  • Loading branch information
commuterjoy committed Jan 25, 2017
1 parent 2c085c8 commit 5b460a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/ads.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class VideoAds {
});

googleSdkScript.addEventListener('error', (e) => {
reportError(e);
this.reportError(e);
reject(e);
});
}
Expand Down Expand Up @@ -209,7 +209,7 @@ class VideoAds {
this.adsManager.start();
} catch (adError) {
// An error may be thrown if there was a problem with the VAST response.
reportError(adError);
this.reportError(adError);
this.video.videoEl.play();
}
}
Expand Down Expand Up @@ -329,7 +329,7 @@ class VideoAds {

// convert the Google Ad error to a JS one
const message = `${adError.getErrorCode()}, ${adError.getType()}, ${adError.getMessage()}, ${adError.getVastErrorCode()}`;
reportError(new Error(message));
this.reportError(new Error(message));

this.adsManager && this.adsManager.destroy();
this.video.containerEl.removeChild(this.adContainerEl);
Expand Down

0 comments on commit 5b460a7

Please sign in to comment.