From 9ceeee9bd556e95e0f3dc264ca1379058f8122c6 Mon Sep 17 00:00:00 2001 From: mrilyew <99399973+mrilyew@users.noreply.github.com> Date: Sat, 7 Dec 2024 17:27:28 +0300 Subject: [PATCH] fix(audios): do not show ajax player if no track --- Web/static/js/al_music.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Web/static/js/al_music.js b/Web/static/js/al_music.js index 9632615d..68208c7d 100644 --- a/Web/static/js/al_music.js +++ b/Web/static/js/al_music.js @@ -773,7 +773,7 @@ document.addEventListener("DOMContentLoaded", async () => { if(parsed) { await window.player.init(null) await window.player.loadDump(parsed) - if(!window.player.isAtAudiosPage()) { + if(!window.player.isAtAudiosPage() && parsed.current_track_id) { window.player.ajReveal() window.player.__updateFace() u(window.player.audioPlayer).trigger('timeupdate')