From 9cbf96564f10a6c1c5e6ce5e83d704f8ced845a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20T=C3=A4kker?= Date: Fri, 25 Sep 2026 22:50:44 +0200 Subject: [PATCH] Exit fullscreen when song ends --- app/plugins/player.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/plugins/player.ts b/app/plugins/player.ts index 7c013dc..98ae2a4 100644 --- a/app/plugins/player.ts +++ b/app/plugins/player.ts @@ -1,6 +1,7 @@ import { Howl } from "howler" export default defineNuxtPlugin((nuxtApp) => { + const { close: closeFullscreen } = useFullscreen() const VOLUME_STORAGE_KEY = "music-v2-player-volume" const DEFAULT_VOLUME = 0.5 @@ -117,6 +118,7 @@ export default defineNuxtPlugin((nuxtApp) => { sound.value?.volume(storedVolume.value) }, onend: () => { + void closeFullscreen() next() stopTracking() },