From 36e35d556011c3635b9b1b763682e189f29235a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20B=C3=B6hler?= Date: Tue, 19 Dec 2023 09:47:39 +0100 Subject: [PATCH] v13.1.1 --- package.json | 2 +- src/GleapStreamedEvent.js | 3 ++- src/UI.js | 14 +++++++------- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index f5dfdf90..48258f76 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gleap", - "version": "13.1.0", + "version": "13.1.1", "main": "build/index.js", "scripts": { "start": "webpack serve", diff --git a/src/GleapStreamedEvent.js b/src/GleapStreamedEvent.js index 759a8280..5904a387 100644 --- a/src/GleapStreamedEvent.js +++ b/src/GleapStreamedEvent.js @@ -1,4 +1,4 @@ -import Gleap, { GleapFrameManager, GleapMetaDataManager, GleapSession } from "./Gleap"; +import Gleap, { GleapFrameManager, GleapMetaDataManager, GleapNotificationManager, GleapSession } from "./Gleap"; import { gleapDataParser } from "./GleapHelper"; export default class GleapStreamedEvent { @@ -102,6 +102,7 @@ export default class GleapStreamedEvent { try { if (message.name === 'update') { const { a, u } = message.data; + if (!GleapFrameManager.getInstance().isOpened()) { if (a) { Gleap.getInstance().performActions(a); diff --git a/src/UI.js b/src/UI.js index 0badbe10..a9f9d123 100644 --- a/src/UI.js +++ b/src/UI.js @@ -780,18 +780,18 @@ export const injectStyledCSS = ( .bb-notification-bubble { position: absolute; - top: -6px; - right: -6px; - min-width: 22px; + top: -5px; + right: -5px; + min-width: 20px; padding: 0px 4px; - height: 22px; - border-radius: 22px; + height: 20px; + border-radius: 20px; background-color: red; color: #fff; - font-size: 12px; + font-size: 11px; font-family: sans-serif; text-align: center; - line-height: 22px; + line-height: 20px; } .bb-notification-bubble--hidden {