mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-01 02:12:26 +00:00
Clear crossOrigin when resetting modal video
This commit is contained in:
1 parent
83a9947611
commit
6a3bc50066
1 file changed
+18
@@ -5510,6 +5510,15 @@ class bitvidApp {
|
||||
videoElement.srcObject = null;
|
||||
});
|
||||
|
||||
safe(() => {
|
||||
if ("crossOrigin" in videoElement) {
|
||||
videoElement.crossOrigin = null;
|
||||
}
|
||||
if (videoElement.hasAttribute("crossorigin")) {
|
||||
videoElement.removeAttribute("crossorigin");
|
||||
}
|
||||
});
|
||||
|
||||
safe(() => {
|
||||
if (typeof videoElement.load === "function") {
|
||||
videoElement.load();
|
||||
@@ -5539,6 +5548,15 @@ class bitvidApp {
|
||||
clone.srcObject = null;
|
||||
});
|
||||
|
||||
safe(() => {
|
||||
if ("crossOrigin" in clone) {
|
||||
clone.crossOrigin = null;
|
||||
}
|
||||
if (clone.hasAttribute("crossorigin")) {
|
||||
clone.removeAttribute("crossorigin");
|
||||
}
|
||||
});
|
||||
|
||||
clone.autoplay = videoElement.autoplay;
|
||||
clone.controls = videoElement.controls;
|
||||
clone.loop = videoElement.loop;
|
||||
|
||||
Reference in new issue
Block a user