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.
@@ -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
- try {
78437
- const response = await fetch(form.action, {
78438
- method: 'POST',
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
  }