try to fix behavior on safari
This commit is contained in:
		
							parent
							
								
									37919998dd
								
							
						
					
					
						commit
						0a78c4ee19
					
				@ -150,10 +150,10 @@ export default {
 | 
				
			|||||||
          this.skipToSecond(this.currentTrackParent.progress.progress);
 | 
					          this.skipToSecond(this.currentTrackParent.progress.progress);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        this.currentTrackParent.progress = undefined;
 | 
					        this.currentTrackParent.progress = undefined;
 | 
				
			||||||
      } else {
 | 
					      }
 | 
				
			||||||
      // Try to fix SAFARI
 | 
					      // Try to fix SAFARI
 | 
				
			||||||
      this.audio.play();
 | 
					      this.audio.play();
 | 
				
			||||||
      }
 | 
					
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    pushHistoryItem() {
 | 
					    pushHistoryItem() {
 | 
				
			||||||
      if (!this.currentUser._id) {
 | 
					      if (!this.currentUser._id) {
 | 
				
			||||||
 | 
				
			|||||||
@ -154,7 +154,7 @@ export default {
 | 
				
			|||||||
      this.$store.dispatch("artists/uploadNewCover", this.selectedArtist);
 | 
					      this.$store.dispatch("artists/uploadNewCover", this.selectedArtist);
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    loadUserProgress() {
 | 
					    loadUserProgress() {
 | 
				
			||||||
      if (!this.isPlaying || this.selectedTrack.parent.parent && this.selectedTrack.parent.parent._id != this.selectedArtist._id) {
 | 
					      if (!this.isPlaying || !this.selectedTrack.parent.parent || this.selectedTrack.parent.parent._id != this.selectedArtist._id) {
 | 
				
			||||||
        this.$store.dispatch("user/getProgress", this.selectedArtist).then(() => {
 | 
					        this.$store.dispatch("user/getProgress", this.selectedArtist).then(() => {
 | 
				
			||||||
          this.gotoTrack();
 | 
					          this.gotoTrack();
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user