Skip to content

Commit

Permalink
v8.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
boehlerlukas committed Nov 10, 2022
1 parent 2d23d4c commit 481a5ac
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion demo/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const Gleap = window.Gleap;

Gleap.setFrameUrl("http://0.0.0.0:3001");
Gleap.setApiUrl("http://0.0.0.0:9000");
Gleap.initialize("ek98ANmHary9PQNG5EIl6TQd3SzqstZA");
Gleap.initialize("gDHGltEcKRLVaVt47QrbfrrbN4SFkYV8");
//Gleap.setEnvironment("dev");

Gleap.attachCustomData({
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": "8.2.5",
"version": "8.2.6",
"main": "build/index.js",
"scripts": {
"start": "webpack serve",
Expand Down
1 change: 1 addition & 0 deletions published/8.2.6/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.

8 changes: 8 additions & 0 deletions src/GleapFrameManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,19 @@ export default class GleapFrameManager {
return;
}

const flowConfig = GleapConfigManager.getInstance().getFlowConfig();
const loadingClass = 'gleap-frame-container--loading';
if (this.gleapFrameContainer.classList) {
this.gleapFrameContainer.classList.remove('gleap-frame-container--hidden');
if (showLoader) {
this.gleapFrameContainer.classList.add(loadingClass);

if (flowConfig.disableBGFade) {
this.gleapFrameContainer.classList.add("gleap-frame-container--loading-nofade");
}
if (flowConfig.disableBGGradient) {
this.gleapFrameContainer.classList.add("gleap-frame-container--loading-nogradient");
}
} else {
this.gleapFrameContainer.classList.remove(loadingClass);
}
Expand Down
11 changes: 10 additions & 1 deletion src/UI.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const injectStyledCSS = (
right: ${buttonX}px;
bottom: ${75 + buttonY}px;
width: calc(100% - 40px);
max-width: 375px;
max-width: 390px;
position: fixed;
z-index: ${zIndexBase + 31};
visibility: visible;
Expand Down Expand Up @@ -124,6 +124,15 @@ export const injectStyledCSS = (
);
}
.gleap-frame-container--loading-nogradient::before {
max-height: 340px;
background: ${headerColor} !important;
}
.gleap-frame-container--loading-nofade::after {
display: none !important;
}
.gleap-frame-container--survey {
bottom: ${buttonY}px !important;
}
Expand Down

0 comments on commit 481a5ac

Please sign in to comment.