Fix video modal default visibility

This commit is contained in:
thePR0M3TH3AN committed 2025-10-12 20:02:27 -04:00
1 parent 5ad74a26bf
commit ac16fb716b
3 files changed
+13 -1

No files matched your search

+7
View File
@@ -376,6 +376,13 @@ export class VideoModal {
this.setCopyEnabled(false);
this.setShareEnabled(false);
this.resetStats();
if (!this.activeVideo && this.playerModal) {
this.playerModal.classList.add("hidden");
this.playerModal.setAttribute("hidden", "");
this.document?.body?.classList?.remove("modal-open");
this.document?.documentElement?.classList?.remove("modal-open");
}
}
bindVideoEvents() {