mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Sync video modal element after cleanup
This commit is contained in:
1 parent
661d6965e4
commit
e36e2c0aee
1 file changed
+13
@@ -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
|
||||
|
||||
Reference in new issue
Block a user