From 2859464b14dd7bdc7ae6db4c92181d9464ed395e Mon Sep 17 00:00:00 2001 From: marwin Date: Sun, 22 Mar 2026 11:45:40 +0100 Subject: [PATCH] Open HTTP streams in new tab to bypass mixed content Co-Authored-By: Claude Sonnet 4.6 --- static/js/app.js | 5 +++++ 1 file changed, 5 insertions(+) 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;