Skip to content

Commit 1cf623b

Browse files
committed
v7.0.28 Updated ready state.
1 parent 07c60c9 commit 1cf623b

File tree

10 files changed

+19602
-11
lines changed

10 files changed

+19602
-11
lines changed

build/index.js

Lines changed: 6531 additions & 1 deletion
Large diffs are not rendered by default.

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

published/7.0.28/index.js

Lines changed: 6531 additions & 0 deletions
Large diffs are not rendered by default.

published/latest/index.js

Lines changed: 6531 additions & 1 deletion
Large diffs are not rendered by default.

src/Gleap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ class Gleap {
496496
// Reload config.
497497
GleapConfigManager.getInstance().start().then(() => {
498498
GleapFrameManager.getInstance().injectFrame();
499-
}).catch((exp) => {});
499+
}).catch((exp) => { });
500500
}
501501

502502
/**

src/GleapConfigManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default class GleapConfigManager {
5757
reject();
5858
};
5959
http.onreadystatechange = function (e) {
60-
if (http.readyState === XMLHttpRequest.DONE) {
60+
if (http.readyState === 4) {
6161
if (http.status === 200 || http.status === 201) {
6262
try {
6363
const config = JSON.parse(http.responseText);

src/GleapFeedback.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export default class GleapFeedback {
122122
reject();
123123
};
124124
http.onreadystatechange = function (e) {
125-
if (http.readyState === XMLHttpRequest.DONE) {
125+
if (http.readyState === 4) {
126126
if (http.status === 200 || http.status === 201) {
127127
resolve();
128128
} else {

src/GleapSession.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ export default class GleapSession {
109109
}
110110
} catch (exp) { }
111111
http.onreadystatechange = function (e) {
112-
if (http.readyState === XMLHttpRequest.DONE) {
112+
if (http.readyState === 4) {
113113
if (http.status === 200 || http.status === 201) {
114114
try {
115115
const sessionData = JSON.parse(http.responseText);
116116
self.validateSession(sessionData);
117-
} catch (exp) { }
117+
} catch (exp) {}
118118
} else {
119119
if (http.status !== 429) {
120120
self.clearSession(attemp);
@@ -188,7 +188,7 @@ export default class GleapSession {
188188
reject();
189189
};
190190
http.onreadystatechange = function (e) {
191-
if (http.readyState === XMLHttpRequest.DONE) {
191+
if (http.readyState === 4) {
192192
if (http.status === 200 || http.status === 201) {
193193
try {
194194
const sessionData = JSON.parse(http.responseText);

src/GleapStreamedEvent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export default class GleapStreamedEvent {
9191
GleapSession.getInstance().injectSession(http);
9292
http.onerror = (error) => {};
9393
http.onreadystatechange = function (e) {
94-
if (http.readyState === XMLHttpRequest.DONE) {
94+
if (http.readyState === 4) {
9595
if (http.status === 200 || http.status === 201) {
9696
try {
9797
const action = JSON.parse(http.responseText);

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = {
2020
clean: true,
2121
},
2222
optimization: {
23-
minimize: true,
23+
minimize: false,
2424
minimizer: [
2525
new TerserPlugin({
2626
terserOptions: {

0 commit comments

Comments
 (0)