Skip to content

Commit d3dcf86

Browse files
committed
v14.5.5
Fixed message bubble.
1 parent 1d49ad5 commit d3dcf86

File tree

6 files changed

+16
-4
lines changed

6 files changed

+16
-4
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.

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

published/14.5.5/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/GleapNotificationManager.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,12 @@ export default class GleapNotificationManager {
335335
}
336336
this.notificationContainer.appendChild(elem);
337337
}
338+
339+
const hasNotifications = newsNotifications.length > 0 || otherNotifications.length > 0;
340+
if (hasNotifications) {
341+
// Clear the notification container
342+
this.clearAllNotifications(true);
343+
}
338344
}
339345

340346
/**
@@ -371,6 +377,11 @@ export default class GleapNotificationManager {
371377
return "";
372378
}
373379

380+
/**
381+
* Clears all notifications from the container.
382+
*
383+
* @param {boolean} uiOnly - Whether to only clear the UI or also the notifications.
384+
*/
374385
clearAllNotifications(uiOnly = false) {
375386
if (!this.notificationContainer) {
376387
return;

0 commit comments

Comments
 (0)