Fix saving quality levels on change

pull/267/head
ElementalAlchemist 3 years ago committed by Mike Lang
parent 965a3dfbd3
commit 1ffb9ae2e1

@ -249,6 +249,7 @@ function setUpVideoControls() {
localStorage.setItem("quality", quality.options[quality.options.selectedIndex].innerText);
quality.addEventListener("change", (_event) => {
globalPlayer.currentLevel = +quality.value;
localStorage.setItem("quality", quality.options[quality.options.selectedIndex].innerText);
});
const fullscreen = document.getElementById("video-controls-fullscreen");

Loading…
Cancel
Save