From 31578db1bc1b72e46987a834f316c164977febf5 Mon Sep 17 00:00:00 2001 From: marwin Date: Thu, 19 Mar 2026 21:04:51 +0100 Subject: [PATCH] Fix window.USER_ID not being set (const doesn't create window property) Co-Authored-By: Claude Sonnet 4.6 --- templates/radio/player.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/radio/player.html b/templates/radio/player.html index a7b7de5..64c2926 100644 --- a/templates/radio/player.html +++ b/templates/radio/player.html @@ -331,7 +331,7 @@ const INITIAL_FEATURED = {{ featured_stations|safe }}; const IS_AUTHENTICATED = {{ user.is_authenticated|yesno:"true,false" }}; const INITIAL_PODCAST_FEEDS = {{ initial_podcast_feeds|safe }}; - const USER_ID = {{ user.id|default:"null" }}; + window.USER_ID = {{ user.id|default:"null" }}; let USER_FOCUS_STATION = {{ focus_station_json|safe }};