mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Merge pull request #1643 from PR0M3TH3AN/fix-embed-modal-buttons-12116875342849342102
Fix unresponsive buttons in Embed Video modal
This commit is contained in:
1 file changed
+8
-2
@@ -98,8 +98,14 @@ export class EmbedVideoModal {
|
||||
const wrapper = this.document.createElement("div");
|
||||
wrapper.innerHTML = html;
|
||||
this.removeTrackingScripts(wrapper);
|
||||
this.container.appendChild(wrapper);
|
||||
modal = wrapper.querySelector("#embedVideoModal");
|
||||
|
||||
const fragment = this.document.createDocumentFragment();
|
||||
while (wrapper.firstChild) {
|
||||
fragment.appendChild(wrapper.firstChild);
|
||||
}
|
||||
this.container.appendChild(fragment);
|
||||
|
||||
modal = this.container.querySelector("#embedVideoModal");
|
||||
}
|
||||
|
||||
if (!modal) {
|
||||
|
||||
Reference in new issue
Block a user