Skip to content

Commit 4558906

Browse files
committed
v14.0.3
1 parent cf36bd1 commit 4558906

File tree

9 files changed

+16
-10
lines changed

9 files changed

+16
-10
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/.DS_Store

2 KB
Binary file not shown.

demo/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ 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("ogWhNhuiZcGWrva5nlDS8l7a78OfaLlV");
7+
Gleap.initialize("gbMLfLgtayFd2PeNJrjbxl6eB2OboAfn");

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

published/14.0.3/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: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,10 +1102,15 @@ class Gleap {
11021102
performActions(actions) {
11031103
for (let i = 0; i < actions.length; i++) {
11041104
const action = actions[i];
1105+
11051106
if (action && action.actionType) {
11061107
if (action.actionType === "notification") {
1107-
if (!this.disableInAppNotifications) {
1108-
Gleap.showNotification(action);
1108+
if (action?.data?.checklist?.popupType === "widget") {
1109+
Gleap.openChecklist(action.data.checklist.id, true);
1110+
} else {
1111+
if (!this.disableInAppNotifications) {
1112+
Gleap.showNotification(action);
1113+
}
11091114
}
11101115
} else if (action.actionType === "banner") {
11111116
Gleap.showBanner(action);

src/GleapNotificationManager.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ export default class GleapNotificationManager {
141141
const elem = document.createElement("div");
142142
elem.onclick = () => {
143143
if (notification.data.conversation) {
144-
Gleap.openConversation(notification.data.conversation.shareToken);
144+
Gleap.openConversation(notification.data.conversation.shareToken, true);
145145
} else if (notification.data.news) {
146-
Gleap.openNewsArticle(notification.data.news.id);
146+
Gleap.openNewsArticle(notification.data.news.id, true);
147147
} else if (notification.data.checklist) {
148-
Gleap.openChecklist(notification.data.checklist.id);
148+
Gleap.openChecklist(notification.data.checklist.id, true);
149149
} else {
150150
Gleap.open();
151151
}

0 commit comments

Comments
 (0)