Userlist collapse and cinema mode now state now persistant.

This commit is contained in:
rainbow napkin 2025-09-06 19:08:10 -04:00
parent 770bdc4794
commit 9650caeed0
101 changed files with 164 additions and 112 deletions

View file

@ -430,11 +430,13 @@ class player{
* Toggles Cinema Mode on or off
* @param {Boolean} cinema - Whether or not to enter Cinema Mode. Defaults to toggle if left unspecified
*/
toggleCinemaMode(cinema = !this.navBar.checkVisibility()){
toggleCinemaMode(cinema = this.navBar.checkVisibility()){
localStorage.setItem("cinemaMode", cinema);
if(cinema){
this.navBar.style.display = "flex";
}else{
this.navBar.style.display = "none";
}else{
this.navBar.style.display = "flex";
}
//Resize the video if we're aspect locked