Skip to content

Commit

Permalink
v14.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
boehlerlukas committed Sep 5, 2024
1 parent 73cdced commit 77370db
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build/cjs/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/esm/index.mjs

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions demo/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
const Gleap = window.Gleap;

Gleap.setFrameUrl("http://0.0.0.0:3001");
// Gleap.setApiUrl("http://0.0.0.0:9000");
// Gleap.setWSApiUrl("ws://0.0.0.0:9000");
Gleap.setApiUrl("http://0.0.0.0:9000");
Gleap.setWSApiUrl("ws://0.0.0.0:9000");

Gleap.initialize("<API_KEY>");
Gleap.initialize("ogWhNhuiZcGWrva5nlDS8l7a78OfaLlV");

Gleap.on("outbound-sent", (data) => {
console.log(data);
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gleap",
"version": "13.9.3",
"version": "14.0.0",
"main": "build/cjs/index.js",
"module": "build/esm/index.mjs",
"exports": {
Expand Down
1 change: 1 addition & 0 deletions published/14.0.0/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion published/latest/index.js

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions src/GleapFrameManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,19 @@ export default class GleapFrameManager {
data: feedbackData,
});
GleapEventManager.notifyEvent("feedback-sent", formData);

if (outboundId && outboundId.length > 0) {
GleapEventManager.notifyEvent("outbound-sent", {
outboundId: outboundId,
outbound: action,
formData: formData,
});

try {
delete formData.reportedBy;
} catch (e) {}
Gleap.trackEvent(`outbound-${outboundId}-submitted`, formData);
}
})
.catch((error) => {
this.sendMessage({
Expand Down

0 comments on commit 77370db

Please sign in to comment.