From da300b54c7dc59f0a2d994d5711fa1599f517ca3 Mon Sep 17 00:00:00 2001 From: marwin Date: Sun, 22 Mar 2026 10:54:48 +0100 Subject: [PATCH] Revert: remove HTTP stream new-tab workaround Co-Authored-By: Claude Sonnet 4.6 --- static/js/app.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/static/js/app.js b/static/js/app.js index e01dee1..7e0cb3f 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -67,15 +67,6 @@ function escapeHtml(str) { function playStation(url, name, stationId) { stopPlayback(false); - // HTTP stream on HTTPS page: the custom /radio/stream-player/ is also HTTPS, - // so the browser still blocks the HTTP audio (mixed content upgrade → HTTPS fails). - // Opening the raw HTTP URL directly navigates the tab to HTTP itself — - // no mixed-content restriction, browser plays it natively. - if (location.protocol === 'https:' && url.startsWith('http://')) { - window.open(url, '_blank'); - return; - } - currentStation = { url, name, id: stationId || null }; isPlaying = true;