@absolutejs/beacon 0.6.24 → 0.6.25

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/index.js CHANGED
@@ -3215,7 +3215,11 @@ var createBeacon = (options) => {
3215
3215
  reportFormAbandonmentOnNavigation = report;
3216
3216
  document.addEventListener("input", onInput, true);
3217
3217
  document.addEventListener("submit", onSubmit, true);
3218
- const reportOnPageHide = () => report();
3218
+ const reportOnPageHide = (event) => {
3219
+ if (event.persisted)
3220
+ return;
3221
+ report();
3222
+ };
3219
3223
  window.addEventListener("pagehide", reportOnPageHide);
3220
3224
  cleanups.push(() => {
3221
3225
  reportFormAbandonmentOnNavigation = null;
@@ -3871,5 +3875,5 @@ export {
3871
3875
  BEACON_ATTRIBUTE
3872
3876
  };
3873
3877
 
3874
- //# debugId=F390493D9649926964756E2164756E21
3878
+ //# debugId=A4D85B3BFDFC197064756E2164756E21
3875
3879
  //# sourceMappingURL=index.js.map