Skip to content

Commit

Permalink
Deactivate tab tooltip when high priority tooltip is blank
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Sep 9, 2024
1 parent 0ec663c commit 17dcdec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webextensions/sidebar/components/TabElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,10 @@ windowId = ${tab.windowId}

const highPriorityTooltipText = this.$TST.getHighPriorityTooltipText();
if (typeof highPriorityTooltipText == 'string') {
this.$TST.setAttribute('title', this.tooltip);
if (highPriorityTooltipText)
this.$TST.setAttribute('title', this.tooltip);
else
this.$TST.removeAttribute('title');
return;
}

Expand Down

0 comments on commit 17dcdec

Please sign in to comment.