fix
This commit is contained in:
@@ -53,7 +53,7 @@ function initCabinetSubmit() {
|
|||||||
form.addEventListener('submit', async (e) => {
|
form.addEventListener('submit', async (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const cfg = window.__SITE_CONFIG__ || {};
|
const cfg = window.__SITE_CONFIG__ || {};
|
||||||
const url = cfg.notifyUrl || 'http://72.56.9.52:8000/notify';
|
const url = cfg.notifyUrl || '/notify';
|
||||||
const fd = new FormData(form);
|
const fd = new FormData(form);
|
||||||
const name = String(fd.get('name') || '').trim();
|
const name = String(fd.get('name') || '').trim();
|
||||||
const email = String(fd.get('email') || '').trim();
|
const email = String(fd.get('email') || '').trim();
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
window.__SITE_CONFIG__ = {
|
window.__SITE_CONFIG__ = {
|
||||||
siteUrl: 'https://elcsa.ru',
|
siteUrl: 'https://elcsa.ru',
|
||||||
notifyUrl: 'http://72.56.9.52:8000/notify',
|
notifyUrl: '/notify',
|
||||||
gtmContainerId: '',
|
gtmContainerId: '',
|
||||||
ga4MeasurementId: '',
|
ga4MeasurementId: '',
|
||||||
googleAdsId: '',
|
googleAdsId: '',
|
||||||
|
|||||||
Reference in New Issue
Block a user