Browse Source

fix stupid bug

Bachir Soussi Chiadmi 7 years ago
parent
commit
1904ab1352

+ 2 - 2
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)+'%'
           });

+ 2 - 2
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)+'%'
           });