Skip to content

Commit 542d873

Browse files
committed
v8.5.5
1 parent 3b394a4 commit 542d873

File tree

6 files changed

+6
-66
lines changed

6 files changed

+6
-66
lines changed

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

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": "8.5.4",
3+
"version": "8.5.5",
44
"main": "build/index.js",
55
"scripts": {
66
"start": "webpack serve",

published/8.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/GleapNotificationBadge.js

Lines changed: 0 additions & 46 deletions
This file was deleted.

src/GleapNotificationManager.js

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import Gleap, {
44
GleapFrameManager,
55
GleapSession,
66
} from "./Gleap";
7-
import GleapNotificationBadge from './GleapNotificationBadge';
87
import { loadFromGleapCache, saveToGleapCache } from "./GleapHelper";
98
import { loadIcon } from "./UI";
109

@@ -13,7 +12,6 @@ export default class GleapNotificationManager {
1312
notifications = [];
1413
unreadCount = 0;
1514
unreadNotificationsKey = "unread-notifications";
16-
badgeManager = null;
1715
isTabActive = true;
1816
showNotificationBadge = true;
1917

@@ -27,24 +25,11 @@ export default class GleapNotificationManager {
2725
}
2826

2927
constructor() {
30-
if (typeof window !== "undefined") {
31-
try {
32-
this.badgeManager = new GleapNotificationBadge();
33-
this.badgeManager.value = 0;
34-
} catch (exp) {
35-
this.badgeManager = null;
36-
}
37-
}
28+
3829
}
3930

4031
updateTabBarNotificationCount() {
41-
if (this.badgeManager) {
42-
if (this.showNotificationBadge) {
43-
this.badgeManager.value = this.unreadCount;
44-
} else {
45-
this.badgeManager.value = 0;
46-
}
47-
}
32+
4833
}
4934

5035
/**

0 commit comments

Comments
 (0)