Skip to content

Commit e1727ee

Browse files
committed
fix: player tracking banner not displayed correctly
1 parent a53a5e3 commit e1727ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/player/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ export class Player {
6060
this.fixTableNavbar();
6161

6262
// Move stuff around
63-
const warnGlyph = document.getElementsByClassName('glyphicon glyphicon-warning-sign')[0];
64-
if (warnGlyph && warnGlyph.parentElement) {
63+
const warnGlyph = document.getElementsByClassName('glyphicon glyphicon-warning-sign')[0] as HTMLSpanElement;
64+
if (warnGlyph && warnGlyph.parentElement?.children.length === 1) {
6565
warnGlyph.parentElement.remove();
6666
const warnBanner = this.warnBanner('This player does not have match tracking enabled. Some data may be missing.');
6767
warnBanner.style.backgroundColor = 'rgba(208, 65, 67, .15)';

0 commit comments

Comments
 (0)