#90 - search history ok

This commit is contained in:
Simon Cambier
2022-09-10 15:30:05 +02:00
parent 417cc69483
commit 65ebe02f8a
5 changed files with 53 additions and 19 deletions

View File

@@ -10,6 +10,7 @@ import { loadSettings, settings, SettingsTab } from './settings'
import { eventBus } from './globals'
import { registerAPI } from '@vanakat/plugin-api'
import api from './api'
import { loadSearchHistory } from './search-history'
// let mainWindow: { on: any; off: any } | null = null
// try {
@@ -30,6 +31,7 @@ function _registerAPI(plugin: OmnisearchPlugin): void {
export default class OmnisearchPlugin extends Plugin {
async onload(): Promise<void> {
await loadSettings(this)
await loadSearchHistory()
_registerAPI(this)