diff --git a/static/js/app.js b/static/js/app.js index 7e0cb3f..944c100 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -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;