mirror of
https://github.com/screentinker/screentinker.git
synced 2026-08-14 06:16:20 -06:00
The cold-start cached-playlist restore runs at top-level during initial script execution: it calls startPlaybackAt(0) -> playCurrentItem -> renderContent, whose first statement is `renderSeq++`. But renderSeq was declared with `let` next to the buffered-video code far below, so it was still in the temporal dead zone on that early path: ReferenceError: can't access lexical declaration 'renderSeq' before initialization (renderContent -> playCurrentItem -> startPlaybackAt) Result: any paired device with a cached playlist + known layout threw on cold load and rendered nothing. Regression from the warm-play/buffered render work, which made renderContent touch renderSeq at its very top. Fix: declare `let renderSeq = 0` with the other top-level player state so it is initialized before the restore path can call renderContent. No behavior change to the buffered-render logic. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| debug-overlay.js | ||
| index.html | ||
| sw.js | ||