Skip to content

Commit 481a5ac

Browse files
committed
v8.2.6
1 parent 2d23d4c commit 481a5ac

File tree

7 files changed

+23
-5
lines changed

7 files changed

+23
-5
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.

demo/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const Gleap = window.Gleap;
22

33
Gleap.setFrameUrl("http://0.0.0.0:3001");
44
Gleap.setApiUrl("http://0.0.0.0:9000");
5-
Gleap.initialize("ek98ANmHary9PQNG5EIl6TQd3SzqstZA");
5+
Gleap.initialize("gDHGltEcKRLVaVt47QrbfrrbN4SFkYV8");
66
//Gleap.setEnvironment("dev");
77

88
Gleap.attachCustomData({

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

published/8.2.6/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/GleapFrameManager.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,19 @@ export default class GleapFrameManager {
172172
return;
173173
}
174174

175+
const flowConfig = GleapConfigManager.getInstance().getFlowConfig();
175176
const loadingClass = 'gleap-frame-container--loading';
176177
if (this.gleapFrameContainer.classList) {
177178
this.gleapFrameContainer.classList.remove('gleap-frame-container--hidden');
178179
if (showLoader) {
179180
this.gleapFrameContainer.classList.add(loadingClass);
181+
182+
if (flowConfig.disableBGFade) {
183+
this.gleapFrameContainer.classList.add("gleap-frame-container--loading-nofade");
184+
}
185+
if (flowConfig.disableBGGradient) {
186+
this.gleapFrameContainer.classList.add("gleap-frame-container--loading-nogradient");
187+
}
180188
} else {
181189
this.gleapFrameContainer.classList.remove(loadingClass);
182190
}

src/UI.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export const injectStyledCSS = (
6767
right: ${buttonX}px;
6868
bottom: ${75 + buttonY}px;
6969
width: calc(100% - 40px);
70-
max-width: 375px;
70+
max-width: 390px;
7171
position: fixed;
7272
z-index: ${zIndexBase + 31};
7373
visibility: visible;
@@ -124,6 +124,15 @@ export const injectStyledCSS = (
124124
);
125125
}
126126
127+
.gleap-frame-container--loading-nogradient::before {
128+
max-height: 340px;
129+
background: ${headerColor} !important;
130+
}
131+
132+
.gleap-frame-container--loading-nofade::after {
133+
display: none !important;
134+
}
135+
127136
.gleap-frame-container--survey {
128137
bottom: ${buttonY}px !important;
129138
}

0 commit comments

Comments
 (0)