Skip to content

Commit dd14aba

Browse files
committed
v7.0.13
1 parent 28f32c9 commit dd14aba

File tree

7 files changed

+13
-15
lines changed

7 files changed

+13
-15
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.

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

published/7.0.13/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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,9 @@ class Gleap {
430430
postInitialization() {
431431
// Load session.
432432
const onGleapReady = function () {
433-
GleapFrameManager.getInstance().injectFrame();
433+
setTimeout(() => {
434+
GleapFrameManager.getInstance().injectFrame();
435+
}, 100);
434436
}
435437
GleapSession.getInstance().setOnSessionReady(onGleapReady.bind(this));
436438
}

src/GleapConfigManager.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,6 @@ export default class GleapConfigManager {
9191
GleapFrameManager.getInstance().sendConfigUpdate();
9292
GleapFeedbackButtonManager.getInstance().updateFeedbackButtonState();
9393

94-
if (flowConfig.enableReplays) {
95-
GleapReplayRecorder.getInstance().start();
96-
} else {
97-
GleapReplayRecorder.getInstance().stop();
98-
}
99-
10094
if (flowConfig.color) {
10195
Gleap.setStyles(
10296
flowConfig.color,
@@ -109,6 +103,12 @@ export default class GleapConfigManager {
109103
);
110104
}
111105

106+
if (flowConfig.enableReplays) {
107+
GleapReplayRecorder.getInstance().start();
108+
} else {
109+
GleapReplayRecorder.getInstance().stop();
110+
}
111+
112112
if (flowConfig.enableNetworkLogs) {
113113
GleapNetworkIntercepter.getInstance().start();
114114
}

src/UI.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export const injectStyledCSS = (
3737
backgroundColor
3838
) => {
3939
const contrastColor = calculateContrast(primaryColor);
40-
const contrastHeaderColor = calculateContrast(headerColor);
4140
const contrastButtonColor = calculateContrast(buttonColor);
4241
const contrastBackgroundColor = calculateContrast(backgroundColor);
4342
const isDarkMode = contrastBackgroundColor === "#ffffff";
@@ -50,12 +49,8 @@ export const injectStyledCSS = (
5049
const hoverHoverColor = isDarkMode
5150
? calculateShadeColor(backgroundColor, 80)
5251
: calculateShadeColor(backgroundColor, -30);
53-
const borderColor = isDarkMode
54-
? calculateShadeColor(backgroundColor, 70)
55-
: calculateShadeColor(backgroundColor, -70);
5652

5753
var borderRadius = parseInt(borderRadius, 10);
58-
const containerBorderRadius = Math.round(borderRadius * 0.6);
5954
const buttonBorderRadius = Math.round(borderRadius * 1.05);
6055
const formItemBorderRadius = Math.round(borderRadius * 0.4);
6156
const formItemSmallBorderRadius = Math.round(borderRadius * 0.25);

0 commit comments

Comments
 (0)