1document.addEventListener("DOMContentLoaded", () => { 2 window.addEventListener("message", (event) => { 3 if("hsFormCallback"===event.data.type&&"onFormSubmit"===event.data.eventName){let t=event.data.data,e="";t.forEach(t=>{"email"===t.name&&(e=t.value)}),fetch("/wp-json/digtective/v1/form-submission",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,sessionId:sessionStorage.getItem("sessionId")})}).then(t=>{console.log("Form submission sent to API",t)}).catch(t=>{console.error("Error submitting form to API:",t)})} 4 }); 5});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.