From 48ff27f6713d99f3e949a9caa19ff33b8e60a47a Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Wed, 30 Mar 2022 23:16:22 -0400 Subject: [PATCH] Fix Previous Track logic from track 2 -> 1 --- templates/parts.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/parts.tmpl b/templates/parts.tmpl index a63766c..244e35d 100644 --- a/templates/parts.tmpl +++ b/templates/parts.tmpl @@ -58,7 +58,7 @@ function playPrev() { current--; - if (current <= 0) { + if (current < 0) { current = len - 1; } link = $playlist.find('a.track')[current];