Revert: remove HTTP stream new-tab workaround
All checks were successful
Build and push Docker image / build (push) Successful in 13s
Test / test (push) Successful in 16s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
marwin 2026-03-22 10:54:48 +01:00
parent f040a45325
commit da300b54c7

View file

@ -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;