import "vanilla-hcaptcha"; import fetch from "unfetch"; // don't continue if there isn't a contact form on this page // TODO: be better and only do any of this on /contact/ const contactForm = document.querySelector("form#contact-form"); if (contactForm) { contactForm.addEventListener("submit", (event) => { // immediately prevent