fix: check if the selected track equal the track in the progress #17

Merged
artem merged 1 commits from save-and-restore-progress-for-audio into main 2023-09-19 17:09:04 +02:00
2 changed files with 5 additions and 3 deletions
Showing only changes of commit aad14f6cd5 - Show all commits

View File

@ -1,5 +1,5 @@
{ {
"backend_dev": "http://localhost:31204", "backend_de": "http://localhost:31204",
"backend_de": "https://webplay.rocks", "backend_dev": "https://webplay.rocks",
"backend": "https://webplay.rocks" "backend": "https://webplay.rocks"
} }

View File

@ -146,7 +146,9 @@ export default {
this.pushHistoryItem(); this.pushHistoryItem();
if (this.currentTrackParent.progress) { if (this.currentTrackParent.progress) {
if (this.currentTrackParent.progress.id == this.selectedTrack._id) {
this.skipToSecond(this.currentTrackParent.progress.progress); this.skipToSecond(this.currentTrackParent.progress.progress);
}
this.currentTrackParent.progress = undefined; this.currentTrackParent.progress = undefined;
} else { } else {
// Try to fix SAFARI // Try to fix SAFARI