Skip to content

Commit

Permalink
v13.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
boehlerlukas committed Feb 11, 2024
1 parent 98593b4 commit a78eee7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion demo/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ Gleap.setFrameUrl("http://0.0.0.0:3001");
Gleap.setApiUrl("http://0.0.0.0:9000");
Gleap.setWSApiUrl("ws://0.0.0.0:8080");

Gleap.initialize("vcxExo94dQQv7KIXd1BnMgN2bzpwZnoj");
Gleap.initialize("ogWhNhuiZcGWrva5nlDS8l7a78OfaLlV");

/*Gleap.setUrlHandler((url, newTab) => {
alert("URL: " + url + " newTab: " + newTab);
});*/

Gleap.setNetworkLogPropsToIgnore(["password", "token"]);

Gleap.registerCustomAction((customAction) => {
console.log("Custom action: ", customAction);
});
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": "13.2.5",
"version": "13.2.6",
"main": "build/index.js",
"scripts": {
"start": "webpack serve",
Expand Down
4 changes: 2 additions & 2 deletions src/GleapNetworkIntercepter.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class GleapNetworkIntercepter {
if (this.externalRequests && this.externalRequests.length > 0) {
requests = requests.concat(this.externalRequests);
}

if (this.filters && this.filters.length > 0) {
// Perform network log filtering.
for (var i = 0; i < requests.length; i++) {
Expand Down Expand Up @@ -141,7 +141,7 @@ class GleapNetworkIntercepter {
}

setFilters(filters) {
this.filters = filters ? filters : [];
this.filters = this.filters.concat(filters ? filters : []);
}

setBlacklist(blacklist) {
Expand Down

0 comments on commit a78eee7

Please sign in to comment.