Skip to content

Commit

Permalink
Fixed console logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
boehlerlukas committed Dec 15, 2021
1 parent 16badb6 commit ee3d2b7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion published/6.4.7/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.

4 changes: 2 additions & 2 deletions src/Gleap.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class Gleap {

/**
* Attaches external network logs that get merged with the internal network logs.
* @param {*} externalConsoleLogs
* @param {*} externalConsoleLogs
*/
static attachNetworkLogs(externalConsoleLogs) {
this.getInstance().networkIntercepter.externalConsoleLogs =
Expand Down Expand Up @@ -652,7 +652,7 @@ class Gleap {
const buttonColor = styles.buttonColor
? styles.buttonColor
: styles.primaryColor;
const borderRadius = styles.borderRadius ? styles.borderRadius : 20;
const borderRadius = styles.borderRadius != null ? styles.borderRadius : 20;

if (
document.readyState === "complete" ||
Expand Down
6 changes: 4 additions & 2 deletions src/NetworkInterception.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ class GleapNetworkIntercepter {
stopped = false;

getRequests() {
var requests = this.externalConsoleLogs.concat(Object.values(this.requests));
console.log(requests);
var requests = this.externalConsoleLogs.concat(
Object.values(this.requests)
);

if (!this.filters || this.filters.length === 0) {
return requests;
}
Expand Down

0 comments on commit ee3d2b7

Please sign in to comment.