new version

This commit is contained in:
UrloMythus
2026-05-19 20:28:26 +02:00
parent fbee2c1855
commit bd208c63ff
99 changed files with 1287 additions and 225 deletions
+15
View File
@@ -1831,6 +1831,21 @@
localStorage.setItem('theme', newTheme);
});
// Persist the global API password across pages (speedtest, playlist
// builder) so the user only has to type it once — otherwise speedtest
// calls /proxy/stream without the password and gets 401.
(function restoreApiPassword() {
const el = document.getElementById('globalApiPassword');
if (!el) return;
const saved = localStorage.getItem('mediaflow_api_password');
if (saved) el.value = saved;
el.addEventListener('input', () => {
const v = el.value.trim();
if (v) localStorage.setItem('mediaflow_api_password', v);
else localStorage.removeItem('mediaflow_api_password');
});
})();
// Tab switching
function switchTab(tabName) {