Changeset 21522ae in Klonkt for src/views/partials
- Timestamp:
- 05/20/2026 10:14:01 PM (4 months ago)
- Branches:
- main
- Children:
- 353c39c
- Parents:
- 46f23fd
- git-author:
- Robin Genis <roboburr@…> (05/20/2026 10:13:26 PM)
- git-committer:
- Robin Genis <roboburr@…> (05/20/2026 10:14:01 PM)
- File:
-
- 1 edited
-
src/views/partials/track-editor.ejs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/views/partials/track-editor.ejs
r46f23fd r21522ae 445 445 }; 446 446 const isOurTrack = () => { 447 const audio = document.getElementById('audio-element'); 448 return audio && track.stream_url && audio.src.endsWith(track.stream_url); 447 // audio.src is a blob: URL (Spotify-style playback) — compare against 448 // the player's logical current-track URL instead. 449 const player = window.pcmsAudioPlayer; 450 const cur = player && player.currentTrack(); 451 return !!(cur && track.stream_url && cur.url === track.stream_url); 449 452 }; 450 453 const resync = () => {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)