diff --git a/frontend/src/v2/components/Soundtrack/MiniPlayer.vue b/frontend/src/v2/components/Soundtrack/MiniPlayer.vue index 49c9e1564..e987ad5e4 100644 --- a/frontend/src/v2/components/Soundtrack/MiniPlayer.vue +++ b/frontend/src/v2/components/Soundtrack/MiniPlayer.vue @@ -26,12 +26,9 @@ const audioEl = ref(null); // On phones the mini player lives in the top bar, which a running game hides, // so the music pauses rather than play on with no controls. -watch( - () => playingStore.stageActive, - (active) => { - if (active && smAndDown.value) audioEl.value?.pause(); - }, -); +watch([() => playingStore.stageActive, smAndDown], ([active, phone]) => { + if (active && phone) audioEl.value?.pause(); +}); // Generation token — bumped every time we reassign `src`. Any async // `play()` promise resolves against the token current when it was