diff --git a/web/src/components/Player.vue b/web/src/components/Player.vue index 8126932..f021704 100644 --- a/web/src/components/Player.vue +++ b/web/src/components/Player.vue @@ -89,7 +89,12 @@ const currentSong = computed(() => store.currentSong); function toggleLyrics() { if (route.path === '/lyrics') { - router.back(); + // Go back if there's history, otherwise go home + if (window.history.length > 1) { + router.back(); + } else { + router.push('/'); + } } else { router.push('/lyrics'); } diff --git a/web/src/views/Lyrics.vue b/web/src/views/Lyrics.vue index a0c2677..a977c34 100644 --- a/web/src/views/Lyrics.vue +++ b/web/src/views/Lyrics.vue @@ -1,7 +1,7 @@