@tracelog/lib 2.7.3-rc.98.2 → 2.7.3-rc.98.4
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/browser/tracelog.esm.js +5 -3
- package/dist/browser/tracelog.esm.js.map +1 -1
- package/dist/browser/tracelog.js +2 -2
- package/dist/browser/tracelog.js.map +1 -1
- package/dist/public-api.cjs +2 -2
- package/dist/public-api.cjs.map +1 -1
- package/dist/public-api.js +2 -2
- package/dist/public-api.js.map +1 -1
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -4030,11 +4030,13 @@ class Cs extends _ {
|
|
|
4030
4030
|
headers: { "Content-Type": "application/json" },
|
|
4031
4031
|
body: JSON.stringify({ attributes: { [Ms]: e } }),
|
|
4032
4032
|
credentials: "same-origin"
|
|
4033
|
+
}).then((t) => {
|
|
4034
|
+
t.ok || (this.lastSyncedSessionId = null, a("debug", "Shopify cart attribute update failed", { data: { status: t.status } }));
|
|
4033
4035
|
}).catch(() => {
|
|
4034
|
-
a("debug", "Shopify cart attribute update failed");
|
|
4036
|
+
this.lastSyncedSessionId = null, a("debug", "Shopify cart attribute update failed");
|
|
4035
4037
|
});
|
|
4036
4038
|
} catch {
|
|
4037
|
-
a("debug", "Shopify cart attribute update failed");
|
|
4039
|
+
this.lastSyncedSessionId = null, a("debug", "Shopify cart attribute update failed");
|
|
4038
4040
|
}
|
|
4039
4041
|
}
|
|
4040
4042
|
setupVisibilityListener() {
|