Update to Svelte 5

This commit is contained in:
Simon Cambier
2025-03-20 21:07:27 +01:00
parent 8e0e9c792e
commit 8e4bf5ba08
5 changed files with 479 additions and 439 deletions

View File

@@ -53,7 +53,7 @@ export default class OmnisearchPlugin extends Plugin {
public readonly searchHistory = new SearchHistory(this)
private ribbonButton?: HTMLElement
private refreshIndexCallback?: () => void
private refreshIndexCallback?: (ev: FocusEvent) => any
constructor(app: App, manifest: PluginManifest) {
super(app, manifest)
@@ -160,7 +160,7 @@ export default class OmnisearchPlugin extends Plugin {
this.refreshIndexCallback = this.notesIndexer.refreshIndex.bind(
this.notesIndexer
)
addEventListener('blur', this.refreshIndexCallback)
addEventListener('blur', this.refreshIndexCallback!)
removeEventListener
await this.executeFirstLaunchTasks()