Skip to content

Commit 74ef16c

Browse files
committed
revert main edit
1 parent 3c1297e commit 74ef16c

File tree

1 file changed

+5
-34
lines changed

1 file changed

+5
-34
lines changed

demo/main.js

Lines changed: 5 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,10 @@ Gleap.setFrameUrl("http://0.0.0.0:3001");
44
Gleap.setApiUrl("http://0.0.0.0:9000");
55
Gleap.setWSApiUrl("ws://0.0.0.0:9000");
66

7-
Gleap.initialize("GnhEkS8fdwxNVjyn3BnYwKzpCkiHgKWL");
7+
//Gleap.disableQueryParams(true);
88

9-
Gleap.identify("123921943", {
10-
name: "Luca",
11-
email: "luca@gleap.io",
12-
});
9+
Gleap.initialize("ogWhNhuiZcGWrva5nlDS8l7a78OfaLlV");
1310

14-
const userData = Gleap.getIdentity();
15-
16-
// If a userId exists the user is not a Guest
17-
if (userData?.userId) {
18-
const gleapId = userData.gleapId;
19-
const gleapHash = userData.gleapHash;
20-
21-
// Redirect back from url param redirect
22-
const urlParams = new URLSearchParams(window.location.search);
23-
const redirectUrl = urlParams.get('redirect');
24-
if (redirectUrl) {
25-
console.log("Redirecting to:", `${redirectUrl}?gleapId=${gleapId}&gleapHash=${gleapHash}`);
26-
window.location.href = `${redirectUrl}?gleapId=${gleapId}&gleapHash=${gleapHash}`;
27-
}
28-
}
29-
30-
// Gleap.startChecklist("696e16f29debde04cb9c8c4d");
31-
32-
// Gleap.on("checklist-step-completed", (data) => {
33-
// console.log("Step completed:", data);
34-
// });
35-
36-
// Gleap.on("checklist-completed", (data) => {
37-
// console.log("Checklist completed!", data);
38-
// });
39-
40-
// Gleap.trackEvent("Connect payment completed");
41-
// Gleap.trackEvent("Style business page completed");
42-
// Gleap.trackEvent('step 2 completed');
11+
Gleap.on("tool-execution", (tool) => {
12+
console.log(tool);
13+
});

0 commit comments

Comments
 (0)