Changeset 2b52bfb in Klonkt for src/views/shell.ejs


Ignore:
Timestamp:
06/14/2026 04:07:28 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
89d6536
Parents:
942028f
Message:

audio: mobile — back button closes the now-playing sheet (history pushState/popstate)

On mobile, openSheet pushes a history entry; the phone's back button (popstate)
then closes the sheet first instead of navigating away. UI close (X/swipe/backdrop/
Esc) pops the entry itself via history.back() so the balance stays correct. Gated
on isMobileView() (desktop unchanged). audio-player.js ?v=7 -> ?v=8.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/shell.ejs

    r942028f r2b52bfb  
    277277     ?v=N — cache-buster: bump bij elke audio-player.js wijziging zodat
    278278     Cloudflare (max-age=1y) niet de oude versie blijft serveren. -->
    279 <script src="/assets/js/audio-player.js?v=7"></script>
     279<script src="/assets/js/audio-player.js?v=8"></script>
    280280<% if (site && site.enable_audio_player && audioTracks && audioTracks.length > 0) { %>
    281281  <script>window.PCMS_SITE_TRACKS = <%- JSON.stringify(audioTracks) %>;</script>
Note: See TracChangeset for help on using the changeset viewer.