aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plugins/ads.js
diff options
context:
space:
mode:
authorArthur Hulsman <a.hulsman@orangegames.com>2018-01-17 15:43:08 +0100
committerArthur Hulsman <a.hulsman@orangegames.com>2018-01-17 15:43:08 +0100
commit0cb2f9588845dc7cf93c3bec45968100c2db8166 (patch)
tree518e3317f1e8824b05ec8073b507f678a88cccb0 /src/js/plugins/ads.js
parent896ea7c689f25e5eed5ad6bcac0e9314cff825ed (diff)
downloadplyr-0cb2f9588845dc7cf93c3bec45968100c2db8166.tar.lz
plyr-0cb2f9588845dc7cf93c3bec45968100c2db8166.tar.xz
plyr-0cb2f9588845dc7cf93c3bec45968100c2db8166.zip
Removed an un-used variable.
Diffstat (limited to 'src/js/plugins/ads.js')
-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', {