try to fix behavior on safari
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing

This commit is contained in:
Artem Anufrij 2023-09-19 18:05:26 +02:00
parent 37919998dd
commit 0a78c4ee19
2 changed files with 4 additions and 4 deletions

View File

@ -150,10 +150,10 @@ export default {
this.skipToSecond(this.currentTrackParent.progress.progress);
}
this.currentTrackParent.progress = undefined;
} else {
}
// Try to fix SAFARI
this.audio.play();
}
},
pushHistoryItem() {
if (!this.currentUser._id) {

View File

@ -154,7 +154,7 @@ export default {
this.$store.dispatch("artists/uploadNewCover", this.selectedArtist);
},
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.gotoTrack();
});