Skip to content

Commit

Permalink
removed variable
Browse files Browse the repository at this point in the history
  • Loading branch information
StoianLucian committed Mar 21, 2024
1 parent 78d7ab9 commit 63dd822
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions coral-component-shell/src/scripts/ShellMenuBarItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,9 +420,8 @@ class ShellMenuBarItem extends BaseComponent(HTMLElement) {
}

commons.nextFrame(() => {
let shellMenuButtonIcon = this._elements.shellMenuButton.getElementsByTagName('coral-icon')[0];
if(shellMenuButtonIcon !== null) {
shellMenuButtonIcon.setAttribute('alt', this.title);
if(this._elements.shellMenuButton.querySelector('coral-icon')[0] !== null) {
this._elements.shellMenuButton.querySelector('coral-icon')[0].setAttribute('alt', this.title);
}
});
}
Expand Down

0 comments on commit 63dd822

Please sign in to comment.