aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/js/plugins/ads.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/js/plugins/ads.js b/src/js/plugins/ads.js
index 1df56b7b..dcd236a9 100644
--- a/src/js/plugins/ads.js
+++ b/src/js/plugins/ads.js
@@ -141,8 +141,6 @@ class Ads {
* @param {Event} adsManagerLoadedEvent
*/
onAdsManagerLoaded(adsManagerLoadedEvent) {
- const { container } = this.player.elements;
-
// Get the ads manager.
const settings = new google.ima.AdsRenderingSettings();
@@ -158,7 +156,7 @@ class Ads {
this.adsCuePoints = this.adsManager.getCuePoints();
// Add advertisement cue's within the time line if available.
- this.adsCuePoints.forEach((cuePoint, index) => {
+ this.adsCuePoints.forEach((cuePoint) => {
if (cuePoint !== 0 && cuePoint !== -1) {
const seekElement = this.player.elements.progress;
const cue = utils.createElement('span', {