diff --git a/sites/all/themes/custom/edlptheme/assets/dist/scripts/main.min.js b/sites/all/themes/custom/edlptheme/assets/dist/scripts/main.min.js index 6ed7a2ae5..6be8ec3cb 100644 --- a/sites/all/themes/custom/edlptheme/assets/dist/scripts/main.min.js +++ b/sites/all/themes/custom/edlptheme/assets/dist/scripts/main.min.js @@ -809,8 +809,8 @@ this.updateLoadingBar(); }, updateLoadingBar(){ - // if (track.readyState === 4){ - if(track.buffered.length>0){ + // if (this.audio.readyState === 4){ + if(this.audio.buffered.length>0){ this.$loader.css({ 'width':parseInt((100 * this.audio.buffered.end(0) / this.audio.duration), 10)+'%' }); diff --git a/sites/all/themes/custom/edlptheme/assets/scripts/main.js b/sites/all/themes/custom/edlptheme/assets/scripts/main.js index 6ed7a2ae5..6be8ec3cb 100644 --- a/sites/all/themes/custom/edlptheme/assets/scripts/main.js +++ b/sites/all/themes/custom/edlptheme/assets/scripts/main.js @@ -809,8 +809,8 @@ this.updateLoadingBar(); }, updateLoadingBar(){ - // if (track.readyState === 4){ - if(track.buffered.length>0){ + // if (this.audio.readyState === 4){ + if(this.audio.buffered.length>0){ this.$loader.css({ 'width':parseInt((100 * this.audio.buffered.end(0) / this.audio.duration), 10)+'%' });