diff --git a/rollup.config.js b/rollup.config.js index 8c69a5d..e21b160 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -14,7 +14,7 @@ if you want to view the source visit the plugins github repository */ ` -const production = false//!process.env.ROLLUP_WATCH +const production = !process.env.ROLLUP_WATCH export default { input: './src/main.ts', diff --git a/src/main.ts b/src/main.ts index ac824c7..d14427a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -85,7 +85,6 @@ export default class OmnisearchPlugin extends Plugin { } onunload(): void { - console.log('Omnisearch - Interrupting PDF indexing') NotesIndex.processQueue.clearQueue() } @@ -131,6 +130,7 @@ async function populateIndex(): Promise { // Load PDFs into the main search engine, and write cache SearchEngine.loadTmpDataIntoMain() + SearchEngine.isIndexing.set(false) await tmpEngine.writeToCache() // Clear memory