Skip to content

Commit 674e788

Browse files
committed
Use .append over .appendChild
1 parent 9a39bb5 commit 674e788

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

assets/js/form-collection.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class FormCollection {
111111

112112
const wrapper = elementFromHtml('<section class="d-flex justify-content-end palmtree-form-collection-bottom"></section>');
113113

114-
wrapper.appendChild(addButton);
114+
wrapper.append(addButton);
115115

116116
this.widget.append(wrapper);
117117

assets/js/recaptcha.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ document.addEventListener("DOMContentLoaded", () => {
3939
script.defer = true;
4040
script.src = element.dataset.script_url;
4141

42-
document.head.appendChild(script);
42+
document.head.append(script);
4343
}
4444
});
4545
});

0 commit comments

Comments
 (0)