Revert: remove HTTP stream new-tab workaround
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
f040a45325
commit
da300b54c7
1 changed files with 0 additions and 9 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue