Skip to content

Commit 921012b

Browse files
committed
v7.0.27
1 parent 9d7d127 commit 921012b

File tree

6 files changed

+15
-4
lines changed

6 files changed

+15
-4
lines changed

build/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.

demo/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const Gleap = window.Gleap;
22

3-
// Gleap.setFrameUrl("http://localhost:3000");
3+
Gleap.setFrameUrl("http://localhost:3001");
44
// Gleap.setLanguage("en");
55
Gleap.setApiUrl("http://localhost:9000");
66
Gleap.initialize("KProDXhMS0V3UUku2iNnrZ4XsBnAYzxt");

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": "7.0.26",
3+
"version": "7.0.27",
44
"main": "build/index.js",
55
"scripts": {
66
"start": "webpack serve",

published/7.0.27/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/Gleap.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ if (typeof HTMLCanvasElement !== "undefined" && HTMLCanvasElement.prototype) {
3333
}
3434

3535
class Gleap {
36+
static silentCrashReportSent = false;
3637
initialized = false;
3738
offlineMode = false;
3839

@@ -396,6 +397,15 @@ class Gleap {
396397
attachments: true,
397398
}
398399
) {
400+
if (this.silentCrashReportSent) {
401+
return;
402+
}
403+
404+
this.silentCrashReportSent = true;
405+
setTimeout(() => {
406+
this.silentCrashReportSent = false;
407+
}, 10000);
408+
399409
const excludeDataCleaned = excludeData ? gleapDataParser(excludeData) : {};
400410
const sessionInstance = GleapSession.getInstance();
401411
if (!sessionInstance.ready) {

0 commit comments

Comments
 (0)