- Fixed bug where annotations could not be added when some text is provided in the search field to restrict the range of annotations displayed.

This commit is contained in:
Andrea Alberti 2024-08-21 10:58:06 +02:00
parent 594b9e0dda
commit 1f697fdb6e

View file

@ -391,14 +391,11 @@ export default class PluginsAnnotations extends Plugin {
): void {
next.call(this, pluginManifest, containerEl, nameMatch, authorMatch, descriptionMatch);
// Add your custom code for personal annotations here
const annotation = self.settings.annotations[pluginManifest.id];
if (annotation) {
if(containerEl && containerEl.lastElementChild)
{
self.addAnnotation(containerEl.lastElementChild)
}
}
// Custom code for personal annotations here
if(containerEl && containerEl.lastElementChild)
{
self.addAnnotation(containerEl.lastElementChild)
}
};
}
});