Skip to content

Commit 77370db

Browse files
committed
v14.0.0
1 parent 73cdced commit 77370db

File tree

7 files changed

+25
-7
lines changed

7 files changed

+25
-7
lines changed

build/cjs/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/esm/index.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

demo/main.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
const Gleap = window.Gleap;
22

33
Gleap.setFrameUrl("http://0.0.0.0:3001");
4-
// Gleap.setApiUrl("http://0.0.0.0:9000");
5-
// Gleap.setWSApiUrl("ws://0.0.0.0:9000");
4+
Gleap.setApiUrl("http://0.0.0.0:9000");
5+
Gleap.setWSApiUrl("ws://0.0.0.0:9000");
66

7-
Gleap.initialize("<API_KEY>");
7+
Gleap.initialize("ogWhNhuiZcGWrva5nlDS8l7a78OfaLlV");
8+
9+
Gleap.on("outbound-sent", (data) => {
10+
console.log(data);
11+
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gleap",
3-
"version": "13.9.3",
3+
"version": "14.0.0",
44
"main": "build/cjs/index.js",
55
"module": "build/esm/index.mjs",
66
"exports": {

published/14.0.0/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

published/latest/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/GleapFrameManager.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,19 @@ export default class GleapFrameManager {
595595
data: feedbackData,
596596
});
597597
GleapEventManager.notifyEvent("feedback-sent", formData);
598+
599+
if (outboundId && outboundId.length > 0) {
600+
GleapEventManager.notifyEvent("outbound-sent", {
601+
outboundId: outboundId,
602+
outbound: action,
603+
formData: formData,
604+
});
605+
606+
try {
607+
delete formData.reportedBy;
608+
} catch (e) {}
609+
Gleap.trackEvent(`outbound-${outboundId}-submitted`, formData);
610+
}
598611
})
599612
.catch((error) => {
600613
this.sendMessage({

0 commit comments

Comments
 (0)