xv-webcomponents 1.3.30 → 1.3.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/xv-accordion-v2_45.cjs.entry.js +3 -12
- package/dist/cjs/xv-accordion-v2_45.cjs.entry.js.map +1 -1
- package/dist/collection/components/xv-login-modal/xv-login-modal.js +3 -12
- package/dist/collection/components/xv-login-modal/xv-login-modal.js.map +1 -1
- package/dist/esm/xv-accordion-v2_45.entry.js +3 -12
- package/dist/esm/xv-accordion-v2_45.entry.js.map +1 -1
- package/dist/xv-webcomponents/{p-d0b3cac6.entry.js → p-869034e2.entry.js} +2 -2
- package/dist/xv-webcomponents/p-869034e2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/xv-webcomponents/p-d0b3cac6.entry.js.map +0 -1
|
@@ -78433,18 +78433,9 @@ const XvLoginModal = class {
|
|
|
78433
78433
|
e.preventDefault();
|
|
78434
78434
|
const form = e.target;
|
|
78435
78435
|
const formData = new FormData(form);
|
|
78436
|
-
|
|
78437
|
-
|
|
78438
|
-
|
|
78439
|
-
body: formData,
|
|
78440
|
-
credentials: 'include',
|
|
78441
|
-
});
|
|
78442
|
-
if (response.ok || response.redirected) {
|
|
78443
|
-
window.location.reload();
|
|
78444
|
-
}
|
|
78445
|
-
}
|
|
78446
|
-
catch (error) {
|
|
78447
|
-
console.error('Login failed:', error);
|
|
78436
|
+
const response = await fetch(form.action, { method: 'POST', body: formData, credentials: 'include' });
|
|
78437
|
+
if (response.redirected || response.ok) {
|
|
78438
|
+
window.location.href = response.url;
|
|
78448
78439
|
}
|
|
78449
78440
|
};
|
|
78450
78441
|
}
|