Sync video modal element after cleanup

This commit is contained in:
thePR0M3TH3AN committed 2025-10-09 13:00:31 -04:00
1 parent 661d6965e4
commit e36e2c0aee
1 file changed
+13
+13
View File
@@ -3015,6 +3015,19 @@ class Application {
});
if (refreshedModal) {
this.modalVideo = refreshedModal;
if (
this.videoModal &&
typeof this.videoModal.setVideoElement === "function"
) {
try {
this.videoModal.setVideoElement(refreshedModal);
} catch (err) {
console.warn(
"[cleanup] Failed to sync video modal element after replacement:",
err
);
}
}
}
}
// Tell webtorrent to cleanup