Skip to content

Commit c3fc877

Browse files
committed
v14.2.11
1 parent 7d2e1d3 commit c3fc877

File tree

7 files changed

+23
-13
lines changed

7 files changed

+23
-13
lines changed

build/cjs/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.

build/esm/index.mjs

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

demo/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Gleap.setFrameUrl("http://0.0.0.0:3001");
44
Gleap.setApiUrl("http://0.0.0.0:9000");
55
Gleap.setWSApiUrl("ws://0.0.0.0:9000");
66

7-
Gleap.initialize("uLu9hsekT4onVdFzG4sXfQI16Da27exv");
7+
Gleap.initialize("BTmQRJBPvKrOErNQCmyPYPAzSsw3gPmw");
88

99
// const lastMonthDate = new Date();
1010
// lastMonthDate.setMonth(lastMonthDate.getMonth() - 1);

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": "14.2.10",
3+
"version": "14.2.11",
44
"main": "build/cjs/index.js",
55
"module": "build/esm/index.mjs",
66
"exports": {

published/14.2.11/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/GleapBannerManager.js

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ export default class GleapBannerManager {
3838
});
3939
}
4040
if (data.name === "banner-height") {
41-
document.documentElement.style.setProperty('--gleap-margin-top', data.data.height + 'px');
41+
document.documentElement.style.setProperty(
42+
"--gleap-margin-top",
43+
data.data.height + "px"
44+
);
4245
}
4346
if (data.name === "banner-data-set") {
4447
document.body.classList.add("gleap-b-shown");
@@ -68,7 +71,10 @@ export default class GleapBannerManager {
6871
if (data.name === "show-help-article") {
6972
Gleap.openHelpCenterArticle(data.data?.articleId);
7073
}
71-
} catch (exp) { }
74+
if (data.name === "show-checklist") {
75+
Gleap.startChecklist(data.data?.checklistId);
76+
}
77+
} catch (exp) {}
7278
});
7379
}
7480

@@ -77,7 +83,7 @@ export default class GleapBannerManager {
7783
document.body.removeChild(this.bannerContainer);
7884
this.bannerContainer = null;
7985
}
80-
86+
8187
document.body.classList.remove("gleap-b-shown");
8288
document.body.classList.remove("gleap-b-f");
8389
}
@@ -103,12 +109,15 @@ export default class GleapBannerManager {
103109
try {
104110
const gleapBFrame = document.querySelector(".gleap-b-frame");
105111
if (gleapBFrame && gleapBFrame.contentWindow) {
106-
gleapBFrame.contentWindow.postMessage(JSON.stringify({
107-
...data,
108-
type: "banner"
109-
}), "*");
112+
gleapBFrame.contentWindow.postMessage(
113+
JSON.stringify({
114+
...data,
115+
type: "banner",
116+
}),
117+
"*"
118+
);
110119
}
111-
} catch (e) { }
120+
} catch (e) {}
112121
}
113122

114123
showBanner(bannerData) {

0 commit comments

Comments
 (0)