Skip to content

Commit

Permalink
Use .append over .appendChild
Browse files Browse the repository at this point in the history
  • Loading branch information
andyexeter committed Aug 21, 2024
1 parent 9a39bb5 commit 674e788
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/js/form-collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class FormCollection {

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

wrapper.appendChild(addButton);
wrapper.append(addButton);

this.widget.append(wrapper);

Expand Down
2 changes: 1 addition & 1 deletion assets/js/recaptcha.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ document.addEventListener("DOMContentLoaded", () => {
script.defer = true;
script.src = element.dataset.script_url;

document.head.appendChild(script);
document.head.append(script);
}
});
});

0 comments on commit 674e788

Please sign in to comment.