Skip to content

Commit

Permalink
v7.0.27
Browse files Browse the repository at this point in the history
  • Loading branch information
boehlerlukas committed Jul 26, 2022
1 parent 9d7d127 commit 921012b
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion demo/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const Gleap = window.Gleap;

// Gleap.setFrameUrl("http://localhost:3000");
Gleap.setFrameUrl("http://localhost:3001");
// Gleap.setLanguage("en");
Gleap.setApiUrl("http://localhost:9000");
Gleap.initialize("KProDXhMS0V3UUku2iNnrZ4XsBnAYzxt");
Expand Down
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": "7.0.26",
"version": "7.0.27",
"main": "build/index.js",
"scripts": {
"start": "webpack serve",
Expand Down
1 change: 1 addition & 0 deletions published/7.0.27/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.

10 changes: 10 additions & 0 deletions src/Gleap.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ if (typeof HTMLCanvasElement !== "undefined" && HTMLCanvasElement.prototype) {
}

class Gleap {
static silentCrashReportSent = false;
initialized = false;
offlineMode = false;

Expand Down Expand Up @@ -396,6 +397,15 @@ class Gleap {
attachments: true,
}
) {
if (this.silentCrashReportSent) {
return;
}

this.silentCrashReportSent = true;
setTimeout(() => {
this.silentCrashReportSent = false;
}, 10000);

const excludeDataCleaned = excludeData ? gleapDataParser(excludeData) : {};
const sessionInstance = GleapSession.getInstance();
if (!sessionInstance.ready) {
Expand Down

0 comments on commit 921012b

Please sign in to comment.