fix stupid bug

This commit is contained in:
2018-04-18 10:05:48 +02:00
parent 77065246fc
commit 1904ab1352
2 changed files with 4 additions and 4 deletions
@@ -809,8 +809,8 @@
this.updateLoadingBar(); this.updateLoadingBar();
}, },
updateLoadingBar(){ updateLoadingBar(){
// if (track.readyState === 4){ // if (this.audio.readyState === 4){
if(track.buffered.length>0){ if(this.audio.buffered.length>0){
this.$loader.css({ this.$loader.css({
'width':parseInt((100 * this.audio.buffered.end(0) / this.audio.duration), 10)+'%' 'width':parseInt((100 * this.audio.buffered.end(0) / this.audio.duration), 10)+'%'
}); });
@@ -809,8 +809,8 @@
this.updateLoadingBar(); this.updateLoadingBar();
}, },
updateLoadingBar(){ updateLoadingBar(){
// if (track.readyState === 4){ // if (this.audio.readyState === 4){
if(track.buffered.length>0){ if(this.audio.buffered.length>0){
this.$loader.css({ this.$loader.css({
'width':parseInt((100 * this.audio.buffered.end(0) / this.audio.duration), 10)+'%' 'width':parseInt((100 * this.audio.buffered.end(0) / this.audio.duration), 10)+'%'
}); });