fix telegram

This commit is contained in:
2026-04-18 18:55:10 +03:00
parent cbce559fb4
commit e6846a6d3d
4 changed files with 40 additions and 10 deletions

View File

@@ -157,6 +157,7 @@ const mobileToggle = document.getElementById('mobileToggle')
formData.append('action', leadFormConfig.action)
formData.append('nonce', leadFormConfig.nonce)
formData.append('form_type', formType)
formData.append('page_url', window.location.href)
try {
const response = await window.fetch(leadFormConfig.ajaxUrl, {
@@ -328,7 +329,7 @@ const mobileToggle = document.getElementById('mobileToggle')
}, 700)
})
submitLeadForm(contactForm, contactSuccess, 'contacts')
submitLeadForm(contactForm, contactSuccess, 'landing_contacts')
document.addEventListener('keydown', event => {
if (event.key !== 'Escape') {