@cshah18/sdk 4.4.0 → 4.5.0
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/cobuy-sdk.esm.js
CHANGED
|
@@ -2341,7 +2341,7 @@ class LobbyModal {
|
|
|
2341
2341
|
const buttons = Array.from(document.querySelectorAll(".cobuy-button"));
|
|
2342
2342
|
const target = buttons.find((btn) => {
|
|
2343
2343
|
const text = (btn.textContent || "").trim().toLowerCase();
|
|
2344
|
-
return text.includes("continue to checkout") || text === "checkout" || text.includes("checkout");
|
|
2344
|
+
return (text.includes("continue to checkout") || text === "checkout" || text.includes("checkout"));
|
|
2345
2345
|
});
|
|
2346
2346
|
if (!target) {
|
|
2347
2347
|
this.logger.warn("[LobbyModal] Could not find a checkout button to trigger");
|
|
@@ -5698,7 +5698,6 @@ class AnalyticsClient {
|
|
|
5698
5698
|
event: "CTA_CLICKED",
|
|
5699
5699
|
productId,
|
|
5700
5700
|
timestamp: new Date().toISOString(),
|
|
5701
|
-
sessionId: this.sessionId,
|
|
5702
5701
|
context: {
|
|
5703
5702
|
pageUrl: typeof window !== "undefined" ? window.location.href : undefined,
|
|
5704
5703
|
userAgent: typeof navigator !== "undefined" ? navigator.userAgent : undefined,
|