From 1904ab13523a43c81e03659b97c9cf403941b7aa Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Wed, 18 Apr 2018 10:05:48 +0200 Subject: [PATCH] fix stupid bug --- .../themes/custom/edlptheme/assets/dist/scripts/main.min.js | 4 ++-- sites/all/themes/custom/edlptheme/assets/scripts/main.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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)+'%' });