mirror of
https://github.com/alberti42/obsidian-plugins-annotations.git
synced 2026-07-22 10:10:24 +00:00
- 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:
parent
594b9e0dda
commit
1f697fdb6e
1 changed files with 5 additions and 8 deletions
13
src/main.ts
13
src/main.ts
|
|
@ -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)
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue