Skip to content

Commit

Permalink
fix(audios): do not show ajax player if no track
Browse files Browse the repository at this point in the history
  • Loading branch information
mrilyew committed Dec 7, 2024
1 parent 7d450c1 commit 9ceeee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Web/static/js/al_music.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 9ceeee9

Please sign in to comment.