Reset toggle state if url is empty

This commit is contained in:
David Halls
2021-05-26 07:54:21 +01:00
parent 689fcd09c9
commit 5c6960c223

View File

@@ -23,6 +23,7 @@ let hls_worker;
async function start() {
const ingestion_url = ingestion_url_el.value.trim();
if (!ingestion_url) {
go_live_el.checked = false;
return;
}
localStorage.setItem('streamana-example-ingestion-url', ingestion_url);