fix(audios): do not show ajax player if no track

This commit is contained in:
mrilyew 2024-12-07 17:27:28 +03:00
parent 7d450c18fd
commit 9ceeee9bd5

View file

@ -773,7 +773,7 @@ document.addEventListener("DOMContentLoaded", async () => {
if(parsed) { if(parsed) {
await window.player.init(null) await window.player.init(null)
await window.player.loadDump(parsed) await window.player.loadDump(parsed)
if(!window.player.isAtAudiosPage()) { if(!window.player.isAtAudiosPage() && parsed.current_track_id) {
window.player.ajReveal() window.player.ajReveal()
window.player.__updateFace() window.player.__updateFace()
u(window.player.audioPlayer).trigger('timeupdate') u(window.player.audioPlayer).trigger('timeupdate')