diff --git a/materialious/src/lib/components/Player.svelte b/materialious/src/lib/components/Player.svelte index c3a031a6..e816bb6c 100644 --- a/materialious/src/lib/components/Player.svelte +++ b/materialious/src/lib/components/Player.svelte @@ -606,9 +606,7 @@ if (data.playlistId) { if (event.message === 'music-controls-next') { goToNextVideo(data.video, data.playlistId); - } - - if (event.message === 'music-controls-previous') { + } else if (event.message === 'music-controls-previous') { goToPreviousVideo(data.playlistId); } }