screentinker/server
ScreenTinker 06ba054898 Fix web player TDZ crash on cached-playlist startup
The cached-playlist restore at the top of the script synchronously calls
playCurrentItem -> renderContent -> createYoutubeEmbed, which references
ytGeneration / activeYtPlayer / ytApiReady / ytApiCallbacks. Those were
declared with `let` further down in the script, so the references hit
the temporal dead zone and threw on every cold start with a YouTube
item in the cached playlist:

  Uncaught ReferenceError: can't access lexical declaration
  'ytGeneration' before initialization

Hoisted the four declarations to the top of the script alongside the
other player state.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-28 14:51:35 -05:00
..
db Add media folder organization to content library 2026-04-28 10:13:36 -05:00
middleware Fix UTF-8 encoding for special characters in filenames 2026-04-28 10:13:41 -05:00
player Fix web player TDZ crash on cached-playlist startup 2026-04-28 14:51:35 -05:00
routes Security: fix IDORs, XSS, rate limits, SSRF validation 2026-04-28 14:37:18 -05:00
services Add group-level scheduling, group playlist assignment, and persist audio unlock 2026-04-15 20:22:42 -05:00
ws Security: fix IDORs, XSS, rate limits, SSRF validation 2026-04-28 14:37:18 -05:00
config.js Add DISABLE_REGISTRATION env var to block public sign-ups 2026-04-22 19:35:32 -05:00
package-lock.json Security: fix IDORs, XSS, rate limits, SSRF validation 2026-04-28 14:37:18 -05:00
package.json Security: fix IDORs, XSS, rate limits, SSRF validation 2026-04-28 14:37:18 -05:00
server.js Fix screenshot fallback query and API 404 hang 2026-04-28 14:49:10 -05:00