Skip to content

Commit f5b8f93

Browse files
committed
v8.0.10
1 parent 38bbe95 commit f5b8f93

File tree

7 files changed

+19
-7
lines changed

7 files changed

+19
-7
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.

index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export namespace Gleap {
4040
function isOpened(): boolean;
4141
function setApiUrl(apiUrl: string): void;
4242
function setFrameUrl(frameUrl: string): void;
43+
function setMaxNetworkRequests(maxRequests: number): void;
4344
function registerCustomAction(
4445
customAction: (action: { name: string }) => void
4546
): void;

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

published/8.0.10/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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Gleap {
3838
static silentCrashReportSent = false;
3939
initialized = false;
4040
offlineMode = false;
41-
41+
4242
// Global data
4343
globalData = {
4444
screenRecordingData: null,
@@ -78,7 +78,7 @@ class Gleap {
7878
* Sets the development environment
7979
* @param {*} environment
8080
*/
81-
static setEnvironment(environment) {
81+
static setEnvironment(environment) {
8282
GleapMetaDataManager.getInstance().environment = environment;
8383
}
8484

@@ -158,7 +158,7 @@ class Gleap {
158158
GleapNotificationManager.getInstance().clearAllNotifications(true);
159159
GleapSession.getInstance().clearSession(0, false);
160160
}
161-
161+
162162
/**
163163
* Indentifies the user session
164164
* @param {string} userId
@@ -194,6 +194,13 @@ class Gleap {
194194
GleapFrameManager.getInstance().hideWidget();
195195
}
196196

197+
/**
198+
* Sets the maximum network request count.
199+
*/
200+
static setMaxNetworkRequests(maxRequests) {
201+
GleapNetworkIntercepter.getInstance().setMaxRequests(maxRequests);
202+
}
203+
197204
/**
198205
* Closes any open Gleap dialogs.
199206
*/

src/GleapNetworkIntercepter.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ class GleapNetworkIntercepter {
130130
}
131131

132132
setMaxRequests(maxRequests) {
133+
if (maxRequests > 50) {
134+
maxRequests = 50;
135+
}
133136
this.maxRequests = maxRequests;
134137
}
135138

@@ -176,7 +179,7 @@ class GleapNetworkIntercepter {
176179

177180
cleanupContentSize(text) {
178181
const contentSize = this.getTextContentSize(text);
179-
if (contentSize > 0.2) {
182+
if (contentSize > 0.15) {
180183
return "<content_too_large>";
181184
}
182185

0 commit comments

Comments
 (0)