better detection of empty tooltip

This commit is contained in:
azivner 2018-10-31 18:31:18 +01:00
parent ab26216cbe
commit 5872146172

View file

@ -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;
}