Open HTTP streams in new tab to bypass mixed content
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
da300b54c7
commit
2859464b14
1 changed files with 5 additions and 0 deletions
|
|
@ -67,6 +67,11 @@ function escapeHtml(str) {
|
|||
function playStation(url, name, stationId) {
|
||||
stopPlayback(false);
|
||||
|
||||
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