Skip to content

Commit

Permalink
better detection of empty tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
zadam committed Oct 31, 2018
1 parent ab26216 commit 5872146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/public/javascripts/services/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ async function renderTooltip(callback, note, attributes) {
}
// other types of notes don't have tooltip preview

if (!content.trim()) {
if (!$(content).text().trim()) {
return;
}

Expand Down

0 comments on commit 5872146

Please sign in to comment.