Skip to content

Commit 4167fe9

Browse files
committed
Added logging.
1 parent cebd019 commit 4167fe9

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
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.

published/8.5.1/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.

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: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ export default class GleapNotificationBadge {
6262
_drawFavicon() {
6363
try {
6464
this.faviconEL.setAttribute("href", this.dataURL);
65-
} catch (e) { }
65+
} catch (e) {
66+
console.log(e);
67+
}
6668
}
6769

6870
_draw() {
@@ -92,7 +94,6 @@ export default class GleapNotificationBadge {
9294
}
9395

9496
// Public functions / methods:
95-
9697
update() {
9798
this._value = Math.min(99, parseInt(this._value, 10));
9899
if (this.img) {
@@ -121,6 +122,8 @@ export default class GleapNotificationBadge {
121122
try {
122123
this._value = val;
123124
this.update();
124-
} catch (e) { }
125+
} catch (e) {
126+
console.log(e);
127+
}
125128
}
126129
}

src/GleapNotificationManager.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export default class GleapNotificationManager {
3232
this.badgeManager = new GleapNotificationBadge({});
3333
this.badgeManager.value = 0;
3434
} catch (exp) {
35+
console.log(exp);
3536
this.badgeManager = null;
3637
}
3738
}

0 commit comments

Comments
 (0)