From aad14f6cd5e94ad1f7a804e5356ba35c5f87afab Mon Sep 17 00:00:00 2001 From: Artem Anufrij Date: Tue, 19 Sep 2023 17:07:16 +0200 Subject: [PATCH] fix: check if the selected track equal the track in the progress --- public/config.json | 4 ++-- src/components/Player.vue | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/public/config.json b/public/config.json index f966bb7..a3b7d4a 100644 --- a/public/config.json +++ b/public/config.json @@ -1,5 +1,5 @@ { - "backend_dev": "http://localhost:31204", - "backend_de": "https://webplay.rocks", + "backend_de": "http://localhost:31204", + "backend_dev": "https://webplay.rocks", "backend": "https://webplay.rocks" } \ No newline at end of file diff --git a/src/components/Player.vue b/src/components/Player.vue index d1ac890..fa441f4 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -146,7 +146,9 @@ export default { this.pushHistoryItem(); if (this.currentTrackParent.progress) { - this.skipToSecond(this.currentTrackParent.progress.progress); + if (this.currentTrackParent.progress.id == this.selectedTrack._id) { + this.skipToSecond(this.currentTrackParent.progress.progress); + } this.currentTrackParent.progress = undefined; } else { // Try to fix SAFARI