diff --git a/script/public/index.html b/script/public/index.html index 0e6e64de..4f7bc16f 100644 --- a/script/public/index.html +++ b/script/public/index.html @@ -134,7 +134,7 @@ source: channelToReproduce, }); } - + clearResolutions(); getResolution(channelToReproduce, updateResolution); } } @@ -166,7 +166,7 @@ function updateResolution(resolutions) { console.log("Resoluciones: " + resolutions); - document.getElementById("video-resolution").innerHTML = ""; + for (i = 0; i < resolutions.length; i++) { var resolutionToAdd = resolutions[i]; if (i < resolutions.length - 1){ @@ -176,6 +176,10 @@ } } + function clearResolutions() { + document.getElementById("video-resolution").innerHTML = ""; + } + \ No newline at end of file