fix stupid bug
This commit is contained in:
@@ -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)+'%'
|
||||
});
|
||||
|
||||
@@ -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)+'%'
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user