@tracelog/lib 2.7.3-rc.98.2 → 2.7.3-rc.98.3

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.
@@ -4010,7 +4010,7 @@ class Cs extends _ {
4010
4010
  visibilityHandler = null;
4011
4011
  lastSyncedSessionId = null;
4012
4012
  activate() {
4013
- this.syncCartAttribute(), this.setupVisibilityListener();
4013
+ this.cleanupVisibilityListener(), this.syncCartAttribute(), this.setupVisibilityListener();
4014
4014
  }
4015
4015
  deactivate() {
4016
4016
  this.cleanupVisibilityListener(), this.lastSyncedSessionId = null;
@@ -4031,10 +4031,10 @@ class Cs extends _ {
4031
4031
  body: JSON.stringify({ attributes: { [Ms]: e } }),
4032
4032
  credentials: "same-origin"
4033
4033
  }).catch(() => {
4034
- a("debug", "Shopify cart attribute update failed");
4034
+ this.lastSyncedSessionId = null, a("debug", "Shopify cart attribute update failed");
4035
4035
  });
4036
4036
  } catch {
4037
- a("debug", "Shopify cart attribute update failed");
4037
+ this.lastSyncedSessionId = null, a("debug", "Shopify cart attribute update failed");
4038
4038
  }
4039
4039
  }
4040
4040
  setupVisibilityListener() {